version: '3.3' services: postgis: shm_size: 1g image: mdillon/postgis:11-alpine volumes: - type: bind source: ./postgis-init.sh target: /docker-entrypoint-initdb.d/postgis-init.sh ## To keep the data outside of container #- type: bind # source: ./postgresql-data: # target: /var/lib/postgresql/data ## With tmpfs database is only on memory, lost on stop. Save SSD lifetime. #- type: tmpfs # target: /var/lib/postgresql/data networks: - osmose-backend-internal backend: build: context: .. dockerfile: docker/Dockerfile image: osm-fr/osmose_backend depends_on: - postgis volumes: - type: bind source: ../osmose_config_password.py target: /opt/osmose-backend/osmose_config_password.py - type: bind source: ./work target: /data/work/osmose environment: - DB_HOST=postgis user: "1000:1000" command: ./osmose_run.py --country=monaco --analyser=osmosis_highway_floating_islands networks: - osmose-backend-internal networks: osmose-backend-internal: