forked from opengisch/QFieldCloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.override.standalone.yml
99 lines (92 loc) · 2.63 KB
/
docker-compose.override.standalone.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
services:
nginx:
volumes:
- static_volume:/var/www/html/staticfiles/
- media_volume:/var/www/html/mediafiles/
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"]
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:
- ${HOST_GEODB_PORT}:5432
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
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: