net/docker-compose.yml
2024-04-29 17:37:46 +03:00

97 lines
1.9 KiB
YAML

version: '3'
services:
db:
image: postgres:15
volumes:
- "./data/db/pgdata:/var/lib/postgresql/data/"
env_file:
- ./variables.env
restart: unless-stopped
networks:
- internal
labels:
- meta.role=db
pgadmin:
depends_on:
- "db"
image: dpage/pgadmin4:8.5
volumes:
- "./data/pgadmin:/var/lib/pgadmin"
env_file:
- ./variables.env
user: '$UID:$GID'
ports:
- 5050:80
restart: unless-stopped
networks:
- internal
labels:
- meta.role=pgadmin
forest:
depends_on:
- "db"
build:
context: ./src/forest
dockerfile: Dockerfile
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
rfront:
build:
context: ./src/rfront
dockerfile: Dockerfile
image: rfront:latest
volumes:
- "./src/rfront:/usr/src/app"
- "/usr/src/app/node_modules"
ports:
- 3000:3000
environment:
- NODE_ENV=development
- REACT_APP_BACKEND_SERVICE_URL=http://localhost:5000
- REACT_APP_WEBSOCKET_SERVICE_URL=http://localhost:5001
restart: unless-stopped
networks:
- internal
labels:
- meta.role=rfront
profiles:
- donotstart
osmtile:
image: overv/openstreetmap-tile-server
volumes:
- "./data/osmtile/pgdata:/data/database/"
ports:
- "8000:80"
environment:
- REPLICATION_URL=https://planet.openstreetmap.org/replication/minute/
- MAX_INTERVAL_SECONDS=60
#- UPDATES=enabled
- EXPIRY_MINZOOM=13
- EXPIRY_TOUCHFROM=13
- EXPIRY_DELETEFROM=19
- EXPIRY_MAXZOOM=20
command: "run"
restart: unless-stopped
networks:
- internal
labels:
- meta.role=osmtile
networks:
internal: {}