-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
70 lines (66 loc) · 1.65 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
services:
limesurvey:
image: martialblog/limesurvey:${LS_IMAGE_TAG:-6-apache}
volumes:
- "surveys:/var/www/html/upload/surveys"
- "apache:/var/log/apache2"
- "./tests/resources/config.php:/var/www/html/application/config/config.php"
depends_on:
- db
ports:
- "${LS_PORT:-8001}:8080"
environment:
DB_TYPE: pgsql
DB_HOST: db
DB_PORT: 5432
DB_NAME: limesurvey
DB_USERNAME: limesurvey
DB_PASSWORD: secret
ADMIN_USER: ${LS_USER:-iamadmin}
ADMIN_NAME: Lime Administrator
ADMIN_PASSWORD: ${LS_PASSWORD:-secret}
EMAIL_SMTPHOST: ${LS_SMTP_HOST:-mailhog:1025}
EMAIL_SMTPUSER: ${LS_SMTP_USER:[email protected]}
EMAIL_SMTPPASSWORD: ${LS_SMTP_PASSWORD:-secret}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/index.php/admin"]
interval: 15s
timeout: 10s
retries: 3
start_period: 5s
db:
image: postgres:17
environment:
POSTGRES_USER: limesurvey
POSTGRES_DB: limesurvey
POSTGRES_PASSWORD: secret
volumes:
- "limedb:/var/lib/postgresql/data"
ports:
- 5432:5432
healthcheck:
test: ["CMD", "pg_isready", "-U", "limesurvey"]
interval: 15s
timeout: 10s
retries: 3
storage:
image: quay.io/minio/minio:latest
volumes:
- "object_storage:/data/"
ports:
- "9000:9000"
- "9001:9001"
command: server /data --console-address ":9001"
profiles:
- web
- notebook
mailhog:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
volumes:
apache:
limedb:
surveys:
object_storage: