forked from makepath/makestack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
98 lines (90 loc) · 2.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
98 lines (90 loc) · 2.05 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: "3.8"
services:
backend:
platform: linux/amd64
image: mapstack/backend
build:
context: .
dockerfile: docker/backend/Dockerfile
volumes:
- ./backend:/code
env_file: ./.env
command: >
sh -c "python manage.py runserver 0.0.0.0:8000"
depends_on:
db:
condition: service_healthy
celery:
platform: linux/amd64
image: mapstack/backend
build:
context: .
dockerfile: docker/backend/Dockerfile
volumes:
- ./backend:/code
env_file: ./.env
command: >
sh -c "celery -A config worker -l info"
depends_on:
backend:
condition: service_started
db:
condition: service_healthy
redis:
condition: service_started
db:
platform: linux/amd64
image: postgres:14.1
volumes:
- db-data:/var/lib/postgresql/data
env_file: ./.env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
geoserver:
platform: linux/amd64
image: mapstack/geoserver
volumes:
- geoserver-data:/opt/geoserver/data_dir
build:
context: .
dockerfile: docker/geoserver/Dockerfile
env_file: ./.env
depends_on:
db:
condition: service_healthy
mapshader:
platform: linux/amd64
image: mapstack/mapshader
volumes:
- ./mapshader:/code
build:
context: .
dockerfile: docker/mapshader/Dockerfile
env_file: ./.env
command: >
sh -c "python flask_app.py"
redis:
platform: linux/amd64
image: redis:6.2.6
web:
platform: linux/amd64
image: nginx:1.21.6
ports:
- 80:80
volumes:
- ./docker/nginx/files/nginx.conf:/tmp/nginx.conf
env_file: ./.env
command: >
sh -c "envsubst < /tmp/nginx.conf > /etc/nginx/conf.d/default.conf &&
sed -i 's/§/$$/g' /etc/nginx/conf.d/default.conf &&
nginx -g 'daemon off;'"
depends_on:
- backend
- geoserver
- mapshader
volumes:
db-data: {}
geoserver-data: {}