net/docker-compose.yml

60 lines
1.2 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:
2023-11-17 20:40:49 -05:00
image: postgres:13
2022-02-05 20:18:30 -05:00
volumes:
- "./data/db/pgdata:/var/lib/postgresql/data/"
env_file:
2023-11-17 18:20:39 -05:00
- ./.env
2022-02-05 20:18:30 -05:00
restart: always
networks:
- internal
pgadmin:
image: dpage/pgadmin4
2023-11-17 21:07:16 -05:00
#volumes:
# - "./data/pgadmin/lib:/var/lib/pgadmin"
2022-02-05 20:18:30 -05:00
env_file:
2023-11-17 18:20:39 -05:00
- ./.env
2023-11-17 20:40:49 -05:00
ports:
- 5050:5050
2022-02-05 20:18:30 -05:00
restart: always
networks:
- internal
depends_on:
- db
2022-02-04 08:48:46 -05:00
flask:
build:
context: ./flask
2023-11-17 18:20:39 -05:00
dockerfile: Dockerfile
2022-02-04 08:48:46 -05:00
command: gunicorn --bind 0.0.0.0:5000 manage:app
2023-11-17 20:40:49 -05:00
ports:
- 5000:5000
2023-11-17 21:07:16 -05:00
environment:
- "FLASK_ENV=production"
- "FLASK_APP=forest/__init__.py"
- "APP_HOME=/app"
2022-02-03 16:47:32 -05:00
env_file:
2023-11-17 18:20:39 -05:00
- ./.env
2022-02-04 08:48:46 -05:00
networks:
- internal
2022-02-03 16:47:32 -05:00
depends_on:
- db
2022-02-04 08:48:46 -05:00
osmtile:
2023-11-17 18:20:39 -05:00
image: overv/openstreetmap-tile-server:2.3.0
2022-02-04 08:48:46 -05:00
hostname: osmtile
environment:
- "DOWNLOAD_PBF=https://download.geofabrik.de/europe/bulgaria-latest.osm.pbf"
- "DOWNLOAD_POLY=https://download.geofabrik.de/europe/bulgaria.poly"
2022-02-03 18:53:53 -05:00
volumes:
2023-11-17 20:40:49 -05:00
- "./data/osmtile/pgdata:/data/database/"
2023-11-17 18:20:39 -05:00
command: "run"
#command: "import"
2023-11-17 20:40:49 -05:00
ports:
- 80:8000
2022-02-04 08:48:46 -05:00
networks:
- internal
restart: always
networks:
internal: {}