86 lines
1.7 KiB
YAML
86 lines
1.7 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:
|
|
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: always
|
|
networks:
|
|
- internal
|
|
|
|
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
|
|
#profiles:
|
|
# - donotstart
|
|
|
|
rfront:
|
|
depends_on:
|
|
- "db"
|
|
- "forest"
|
|
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
|
|
|
|
# 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: {}
|