version: '3' services: db: image: postgres:15 volumes: - "./data/db/pgdata:/var/lib/postgresql/data/" env_file: - ./variables.env restart: always networks: - internal pgadmin: image: dpage/pgadmin4:8.5 volumes: - "./data/pgadmin:/var/lib/pgadmin" env_file: - ./variables.env user: '$UID:$GID' ports: - 5050:80 restart: always networks: - internal depends_on: - db forest: depends_on: - "db" build: ./src/forest image: forest:latest volumes: - "./data/forest/migrations:/app/migrations" ports: - 5000:5000 env_file: - ./variables.env restart: unless-stopped networks: - internal labels: - meta.role=forest #profiles: # - donotstart # osmtile: # image: overv/openstreetmap-tile-server:2.3.0 # hostname: osmtile # environment: # - "DOWNLOAD_PBF=https://download.geofabrik.de/europe/bulgaria-latest.osm.pbf" # - "DOWNLOAD_POLY=https://download.geofabrik.de/europe/bulgaria.poly" # volumes: # - "./data/osmtile/pgdata:/data/database/" # command: "run" # #command: "import" # ports: # - 80:8000 # networks: # - internal # restart: always networks: internal: {}