net/docker-compose.yml

66 lines
1.3 KiB
YAML
Raw Normal View History

2022-02-04 08:18:46 -05:00
version: '3'
2022-02-03 16:47:32 -05:00
services:
2022-02-05 20:18:30 -05:00
db:
2024-02-24 07:46:14 -05:00
image: postgres:15
2022-02-05 20:18:30 -05:00
volumes:
- "./data/db/pgdata:/var/lib/postgresql/data/"
env_file:
2024-04-03 12:43:09 -04:00
- ./variables.env
2022-02-05 20:18:30 -05:00
restart: always
networks:
- internal
2024-02-24 07:46:14 -05:00
2022-02-05 20:18:30 -05:00
pgadmin:
image: dpage/pgadmin4
2024-03-28 11:57:35 -04:00
volumes:
- "./data/pgadmin:/var/lib/pgadmin"
2022-02-05 20:18:30 -05:00
env_file:
2024-04-03 12:43:09 -04:00
- ./variables.env
user: '$UID:$GID'
2023-11-17 20:40:49 -05:00
ports:
2024-03-28 11:50:43 -04:00
- 5050:80
2022-02-05 20:18:30 -05:00
restart: always
networks:
- internal
depends_on:
- db
2024-02-24 07:46:14 -05:00
forest:
depends_on:
- "db"
build: ./src/forest
image: forest:latest
2024-04-01 12:16:26 -04:00
volumes:
- "./data/forest/migrations:/app/migrations"
2023-11-17 20:40:49 -05:00
ports:
- 5000:5000
2022-02-03 16:47:32 -05:00
env_file:
2024-04-03 12:43:09 -04:00
- ./variables.env
2024-02-24 07:46:14 -05:00
restart: unless-stopped
2022-02-04 08:48:46 -05:00
networks:
2024-02-24 07:46:14 -05:00
- internal
labels:
- meta.role=forest
#profiles:
# - donotstart
2024-02-24 07:46:14 -05:00
2024-03-28 11:30:25 -04:00
# 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
2024-02-24 07:46:14 -05:00
2022-02-04 08:48:46 -05:00
networks:
internal: {}