You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
defane 9fcf2b0871 Merge branch 'master' of 8 years ago
api Import project 8 years ago
collect Import project 8 years ago
.gitignore Initial commit 8 years ago Import project 8 years ago
docker-compose.yml Import project 8 years ago

Level2's sensors



  • docker
  • docker-compose
  • web server with uwsgi support

Application configuration

  1. Create mongodb data container: docker create --name=sensors-mongodb-data mongo

  2. Set basic ACL on mongodb: a. docker start sensors-mongodb-data b. docker exec -it sensors-mongodb-data mongo particule c. > db.createUser({user: "sensors", pwd: "<password>", roles: [ "dbOwner" ]}); d. > exit e. docker stop sensors-mongodb-data

  3. Create data container: docker create --name=sensors-data -v /etc/l2-sensors debian

  4. Create configuration file in data container: docker run -it --rm --volumes-from sensors-data busybox vi /etc/l2-sensors/conf.yml Example of conf.yml


    • id: variables:
      • temperatureC
      • humidity
      • pressure db: mongo: {username: sensors, password: } token:

Reverse proxy configuration

Example of configuration for nginx

server {
    listen 443 ssl;

    location / {
        include uwsgi_params;


  • To start (in project root directory): docker-compose up -d