net/docker-compose.yml
2024-04-05 12:54:28 +03:00

66 lines
1.3 KiB
YAML

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: {}