This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
122 lines (117 loc) · 3.22 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
volumes:
static_root:
services:
web: # Name of this container should not be changed
image: geocity
restart: unless-stopped
build:
context: ./
args:
ENV: PROD
depends_on:
- statics_builder
entrypoint: /code/entrypoint.sh
command: "gunicorn geocity.wsgi -b :9000 --error-logfile gunicorn_log.log --workers=2 --threads=4 --worker-class=gthread"
volumes:
- ${PRIVATE_DOCUMENTS_DIR}:/private_documents
- ${PUBLIC_DOCUMENTS_DIR}:/public_documents
- ${ARCHIVE_DIR}:/archive
- static_root:/external_statics
# to allow to spawn new QGIS containers
- /var/run/docker.sock:/var/run/docker.sock
environment:
ENV: PROD
DISABLE_MIGRATION_SCRIPT_ON_PRODUCTION:
CLEAR_PUBLIC_SCHEMA_ON_FIXTURIZE:
DJANGO_DOCKER_PORT:
STATIC_URL:
PREFIX_URL:
PGDATABASE:
PGUSER:
PGPASSWORD:
PGHOST:
PGPORT:
SECRET_KEY:
EMAIL_HOST:
EMAIL_PORT:
EMAIL_HOST_USER:
EMAIL_HOST_PASSWORD:
EMAIL_USE_TLS:
EMAIL_TO_CONSOLE:
DEFAULT_FROM_EMAIL:
PAGINATE_BY:
MIN_START_DELAY:
OL_MAP_HEIGHT:
WMTS_GETCAP:
WMTS_LAYER:
WMTS_GETCAP_ALTERNATIVE:
WMTS_LAYER_ALTERNATIVE:
PRIVATE_DOCUMENTS_DIR:
PUBLIC_DOCUMENTS_DIR:
ALLOWED_HOSTS:
ALLOWED_CORS:
ENABLE_2FA:
AUTH_PROVIDER_GEOMAPFISH_URL:
AUTH_PROVIDER_DOOTIX_URL:
SESSION_COOKIE_AGE:
SESSION_SAVE_EVERY_REQUEST:
SESSION_COOKIE_SAMESITE:
SECURE_PROXY_SSL_HEADER:
AXES_FAILURE_LIMIT:
AXES_LOCKOUT_PARAMETERS:
AXES_COOLOFF_TIME:
AXES_IPWARE_PROXY_COUNT:
DRF_THROTTLE_RATE_PERMITS_API:
DRF_THROTTLE_RATE_PERMITS_DETAILS_API:
DRF_THROTTLE_RATE_EVENTS_API:
DRF_THROTTLE_RATE_SEARCH_API:
DRF_THROTTLE_RATE_AGENDA_API:
ALLOW_REMOTE_USER_AUTH:
LOCATIONS_SEARCH_API:
LOCATIONS_SEARCH_API_DETAILS:
ISOLATED_NETWORK_NAME:
DEFAULT_SITE:
AUTHOR_IBAN_VISIBLE:
PAYMENT_PROCESSING_TEST_ENVIRONMENT:
PAYMENT_CURRENCY:
LOCAL_TIME_ZONE_UTC:
SITE_DOMAIN:
USE_THUMBOR:
THUMBOR_SERVICE_URL:
CSRF_TRUSTED_ORIGINS:
ports:
- "${DJANGO_DOCKER_PORT}:9000"
networks:
- isolated
- default
# Builder for the geocity_qgis image.
qgis:
image: geocity_qgis
build:
context: services/qgis
# This service is only there for building, containers are instantaited on demand by Django.
# Runtime config below is therefore ignored.
command: echo "built"
# networks:
# - isolated
# Builder for the geocity_pdf image
pdf:
image: geocity_pdf
build:
context: services/pdf
# This service is only there for building, containers are instantaited on demand by Django.
# Runtime config below is therefore ignored.
command: echo "built"
# networks:
# - isolated
# Builder for the external statics than must be built
statics_builder:
image: external_statics
build:
context: services/external_statics
volumes:
- static_root:/app/
networks:
# Use this for containers that should only be able to communicate with Django
isolated:
name: ${ISOLATED_NETWORK_NAME}