forked from opengisch/QFieldCloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.override.local.yml
135 lines (124 loc) · 3.49 KB
/
docker-compose.override.local.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
version: '3.9'
services:
app:
build:
args:
- DEBUG_BUILD=1
ports:
# allow direct access without nginx
- ${DJANGO_DEV_PORT}:8000
- ${DEBUG_DEBUGPY_APP_PORT:-5678}:5678
volumes:
# mount the source for live reload
- ./docker-app/qfieldcloud:/usr/src/app/qfieldcloud
environment:
DEBUG: 1
command: python3 -m debugpy --listen 0.0.0.0:5678 manage.py runserver 0.0.0.0:8000
depends_on:
- db
- redis
worker_wrapper:
scale: ${QFIELDCLOUD_WORKER_REPLICAS}
build:
args:
- DEBUG_BUILD=1
ports:
- ${DEBUG_DEBUGPY_WORKER_WRAPPER_PORT:-5679}:5679
volumes:
# mount the source for live reload
- ./docker-app/qfieldcloud:/usr/src/app/qfieldcloud
- ./docker-app/worker_wrapper:/usr/src/app/worker_wrapper
command: python3 -m debugpy --listen 0.0.0.0:5679 manage.py dequeue
smtp4dev:
image: rnwood/smtp4dev:v3
restart: always
ports:
# Web interface
- ${SMTP4DEV_WEB_PORT}:80
# SMTP server
- ${SMTP4DEV_SMTP_PORT}:25
# IMAP
- ${SMTP4DEV_IMAP_PORT}:143
volumes:
- smtp4dev_data:/smtp4dev
environment:
# Specifies the server hostname. Used in auto-generated TLS certificate if enabled.
- ServerOptions__HostName=smtp4dev
db:
image: postgis/postgis:13-3.1-alpine
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- ${HOST_POSTGRES_PORT}:5432
command: ["postgres", "-c", "log_statement=all", "-c", "log_destination=stderr"]
redis:
ports:
- "${REDIS_PORT}:6379"
memcached:
ports:
- "${MEMCACHED_PORT}:11211"
geodb:
image: postgis/postgis:12-3.0
restart: unless-stopped
volumes:
- geodb_data:/var/lib/postgresql
environment:
POSTGRES_DB: ${GEODB_DB}
POSTGRES_USER: ${GEODB_USER}
POSTGRES_PASSWORD: ${GEODB_PASSWORD}
ports:
- ${GEODB_PORT}:5432
minio:
image: minio/minio:RELEASE.2023-04-07T05-28-58Z
restart: unless-stopped
volumes:
- minio_data1:/data1
- minio_data2:/data2
- minio_data3:/data3
- minio_data4:/data4
environment:
MINIO_ROOT_USER: ${STORAGE_ACCESS_KEY_ID}
MINIO_ROOT_PASSWORD: ${STORAGE_SECRET_ACCESS_KEY}
MINIO_BROWSER_REDIRECT_URL: http://${QFIELDCLOUD_HOST}:${MINIO_BROWSER_PORT}
command: server /data{1...4} --console-address :9001
healthcheck:
test: [
"CMD",
"curl",
"-A",
"Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0",
"-f",
"${STORAGE_ENDPOINT_URL}/minio/index.html"
]
interval: 5s
timeout: 20s
retries: 5
ports:
- ${MINIO_BROWSER_PORT}:9001
- ${MINIO_API_PORT}:9000
createbuckets:
image: minio/mc
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio ${STORAGE_ENDPOINT_URL} ${STORAGE_ACCESS_KEY_ID} ${STORAGE_SECRET_ACCESS_KEY};
/usr/bin/mc mb myminio/${STORAGE_BUCKET_NAME};
/usr/bin/mc policy set download myminio/${STORAGE_BUCKET_NAME}/users;
/usr/bin/mc version enable myminio/${STORAGE_BUCKET_NAME};
exit 0;
"
volumes:
postgres_data:
geodb_data:
smtp4dev_data:
minio_data1:
minio_data2:
minio_data3:
minio_data4: