-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
107 lines (96 loc) · 1.95 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
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
99
100
101
102
103
104
105
106
107
version: "3.9"
services:
caddy:
image: caddy:2
dns:
- 8.8.8.8
- 8.8.4.4
configs:
- source: caddyfile
target: /etc/caddy/Caddyfile
ports:
- target: 80
published: 80
protocol: tcp
mode: ingress
- target: 443
published: 443
protocol: tcp
mode: ingress
volumes:
- caddy:/data
networks:
- caddy_traefik
- caddy_astute
- default
- landscapes_services
db:
image: postgres:14
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- postgres:/var/lib/postgresql/data
geoserver:
image: docker.osgeo.org/geoserver:2.21.2
environment:
- GEOSERVER_CSRF_WHITELIST=landscapes.wearepal.ai
- EXTRA_JAVA_OPTS=-Xmx10g
volumes:
- geoserver:/opt/geoserver_data
queue:
image: redis:7
command: redis-server --appendonly yes
volumes:
- redis_queue:/data
migration:
image: "wearepal/landscapes:${VERSION}"
command: bin/run-migrations
secrets:
- secret_key_base
deploy:
restart_policy:
condition: none
web:
image: "wearepal/landscapes:${VERSION}"
command: bin/run-server
logging:
driver: "json-file"
options:
max-size: "1G"
secrets:
- secret_key_base
volumes:
- storage:/app/storage
worker:
image: "wearepal/landscapes:${VERSION}"
command: bin/run-worker
stop_signal: SIGQUIT
logging:
driver: "json-file"
options:
max-size: "1G"
secrets:
- secret_key_base
volumes:
- storage:/app/storage
configs:
caddyfile:
external: true
name: landscapes_caddyfile
secrets:
secret_key_base:
external: true
name: landscapes_secret_key_base
volumes:
caddy:
geoserver:
postgres:
redis_queue:
storage:
networks:
caddy_traefik:
external: true
caddy_astute:
external: true
landscapes_services:
external: true