-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·64 lines (59 loc) · 1.8 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3.9'
services:
webapp_djakart:
image: enricofer/djakart:latest
#command: docker compose exec webapp_djakart /usr/bin/python3 manage.py collectstatic --no-input
#command: docker compose exec webapp_djakart /usr/bin/python3 manage.py makemigrations --no-input
#command: docker compose exec webapp_djakart /usr/bin/python3 manage.py createsuperuser --no-input
command: >
bash -c "/usr/bin/python3 manage.py wait_for_db
&& /usr/bin/python3 manage.py migrate
&& /usr/bin/python3 manage.py runserver 0.0.0.0:8000"
env_file:
- .env
ports:
- 8000:8000
depends_on:
- postgis_djakart
volumes:
- ./data/media:/media
- ./data/static:/app/static
- ./webapp:/app
- ./data/kart_versions:/kart_versions
healthcheck:
test: wget -qO- http://localhost:8000/healthcheck/ || exit 1
start_period: 30s
interval: 60s
timeout: 10s
retries: 10
postgis_djakart:
image: postgis/postgis:latest
env_file:
- .env
ports:
- 5435:5432
volumes:
- ./data/pgdata:/var/lib/postgresql/pgdata/
- ./initdb.sh:/docker-entrypoint-initdb.d/initdb.sh
qgisserver_djakart:
image: enricofer/qgis-server:latest
env_file:
- .env
volumes:
- ./data/kart_versions:/kart_versions
- ./webapp/djakart/otf_qgisserver_plugin:/plugins/otf_qgisserver_plugin
- ./000-default.conf:/etc/apache2/sites-enabled/000-default.conf
nginx_djakart:
image: nginx:latest
env_file:
- .env
volumes:
- ./data/static:/static
- ./nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 9889:80
depends_on:
- qgisserver_djakart
- webapp_djakart
#volumes:
# djakart_pgdata: