forked from g3w-suite/g3w-suite-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-consumer.yml
152 lines (143 loc) · 4.01 KB
/
docker-compose-consumer.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
version: "3"
services:
postgis:
image: g3wsuite/postgis:11.0-2.5
ports:
- "5439:5432"
environment:
- POSTGRES_DBNAME=${G3WSUITE_POSTGRES_DBNAME},data_testing,data_production
- POSTGRES_USER=${G3WSUITE_POSTGRES_USER_LOCAL}
- POSTGRES_PASS=${G3WSUITE_POSTGRES_PASS}
- ALLOW_IP_RANGE=0.0.0.0/0
restart: on-failure
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
volumes:
- ${WEBGIS_DOCKER_SHARED_VOLUME}:/var/lib/postgresql
healthcheck:
interval: 60s
timeout: 30s
retries: 3
test: "pg_isready"
networks:
internal:
aliases:
- ${WEBGIS_PUBLIC_HOSTNAME}
g3w-suite:
image: g3wsuite/g3w-suite:dev
environment:
- G3WSUITE_TILECACHE_PATH
- G3WSUITE_POSTGRES_DBNAME
- G3WSUITE_POSTGRES_USER
- G3WSUITE_POSTGRES_USER_LOCAL
- G3WSUITE_POSTGRES_PASS
- G3WSUITE_POSTGRES_HOST
- G3WSUITE_POSTGRES_PORT
- G3WSUITE_ORS_API_ENDPOINT
- G3WSUITE_ORS_API_KEY
- TILESTACHE_CACHE_BUFFER_SIZE
- TILESTACHE_CACHE_TOKEN
- G3WSUITE_GUNICORN_NUM_WORKERS
- G3WSUITE_GUNICORN_MAX_REQUESTS
- FRONTEND
- PGSERVICEFILE
- QGIS_SERVER_LOG_FILE
- QGIS_SERVER_LOG_LEVEL
expose:
- "8000"
restart: always
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
depends_on:
- postgis
volumes:
- ${WEBGIS_DOCKER_SHARED_VOLUME}:/shared-volume
- ${WEBGIS_DOCKER_SHARED_VOLUME}/node_modules:/code/node_modules
- ./config/g3w-suite/overrides/templates:/code/templates:ro
- ./config/g3w-suite/settings_docker.py:/code/g3w-admin/base/settings/local_settings.py
- ./secrets/pg_service.conf:${PGSERVICEFILE}
networks:
internal:
redis:
image: redis:latest
expose:
- 6379
networks:
internal:
# Asynchronous tasks consumer (run_huey)
g3w-suite-consumer:
image: g3wsuite/g3w-suite:dev
environment:
- G3WSUITE_TILECACHE_PATH
- G3WSUITE_POSTGRES_DBNAME
- G3WSUITE_POSTGRES_USER
- G3WSUITE_POSTGRES_USER_LOCAL
- G3WSUITE_POSTGRES_PASS
- G3WSUITE_POSTGRES_HOST
- G3WSUITE_POSTGRES_PORT
- G3WSUITE_ORS_API_ENDPOINT
- G3WSUITE_ORS_API_KEY
- TILESTACHE_CACHE_BUFFER_SIZE
- TILESTACHE_CACHE_TOKEN
- G3WSUITE_GUNICORN_NUM_WORKERS
- G3WSUITE_GUNICORN_MAX_REQUESTS
- FRONTEND
- PGSERVICEFILE
- QGIS_SERVER_LOG_FILE
- QGIS_SERVER_LOG_LEVEL
restart: always
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
entrypoint: /scripts/docker-consumer-entrypoint.sh
depends_on:
- g3w-suite
- redis
volumes:
- ${WEBGIS_DOCKER_SHARED_VOLUME}:/shared-volume
- ${WEBGIS_DOCKER_SHARED_VOLUME}/node_modules:/code/node_modules
- ./config/g3w-suite/overrides/templates:/code/templates:ro
- ./config/g3w-suite/settings_docker.py:/code/g3w-admin/base/settings/local_settings.py
- ./secrets/pg_service.conf:${PGSERVICEFILE}
networks:
internal:
nginx:
image: nginx
ports:
- "8080:8080"
- "443:443"
expose:
- "8080"
volumes:
- ${WEBGIS_DOCKER_SHARED_VOLUME}:/shared-volume
- ${WEBGIS_DOCKER_SHARED_VOLUME}/var/www/.well-known:/var/www/.well-known
- ${WEBGIS_DOCKER_SHARED_VOLUME}/certs/letsencrypt:/etc/letsencrypt:ro
- ./config/g3w-suite/overrides/static:/shared-volume/static/overrides:ro
- ./config/nginx:/etc/nginx/conf.d:ro
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
restart: always
networks:
internal:
# Letsencrypt certs
certbot:
image: certbot/certbot
volumes:
- ${WEBGIS_DOCKER_SHARED_VOLUME}/var/www/certbot:/var/www/certbot
- ${WEBGIS_DOCKER_SHARED_VOLUME}/certs/letsencrypt:/etc/letsencrypt
volumes:
shared-volume:
g3wsuite-pg-data:
networks:
internal: