forked from g3w-suite/g3w-suite-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-portainer.yml
88 lines (81 loc) · 2.41 KB
/
docker-compose-portainer.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
# docker-conpose file for Portainer(https://www.portainer.io)
# A the moment Portainer work only with version "2"
version: "2"
services:
postgis:
image: g3wsuite/postgis:11.0-2.5
ports:
- "${PG_PUBLIC_PORT}: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
networks:
internal:
aliases:
- ${WEBGIS_PUBLIC_HOSTNAME}
g3w-suite:
image: g3wsuite/g3w-suite:dev
environment:
- G3WSUITE_TILECACHE_PATH
- G3WSUITE_QDJANGO_SERVER_URL
- G3WSUITE_POSTGRES_DBNAME
- G3WSUITE_POSTGRES_USER
- G3WSUITE_POSTGRES_USER_LOCAL
- G3WSUITE_POSTGRES_PASS
- G3WSUITE_POSTGRES_HOST
- G3WSUITE_POSTGRES_PORT
- TILESTACHE_CACHE_BUFFER_SIZE
- TILESTACHE_CACHE_TOKEN
expose:
- "8000"
command: /cmd.sh
restart: always
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
depends_on:
- postgis
volumes:
- ${G3WSUITE_DOCKER_INSTALL_DIR}/cmd.sh:/cmd.sh:ro
- ${WEBGIS_DOCKER_SHARED_VOLUME}:/shared-volume
- ${G3WSUITE_DOCKER_INSTALL_DIR}/config/g3w-suite/overrides/templates:/code/templates:ro
- ${G3WSUITE_DOCKER_INSTALL_DIR}/config/g3w-suite/settings_docker.py:/code/g3w-admin/base/settings/local_settings.py:ro
networks:
internal:
nginx:
image: nginx:1.19.5
ports:
- "${WEBGIS_HTTP_PORT}:8080"
- "${WEBGIS_HTTPS_PORT}: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
- ${G3WSUITE_DOCKER_INSTALL_DIR}/config/g3w-suite/overrides/static:/shared-volume/static/overrides:ro
- ${G3WSUITE_DOCKER_INSTALL_DIR}/config/nginx:/etc/nginx/conf.d:ro
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
restart: always
networks:
internal:
volumes:
shared-volume:
networks:
internal: