-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
60 lines (60 loc) · 1.73 KB
/
compose.yaml
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
services:
humhub:
image: humhub/humhub-dev:${HUMHUB_DOCKER_VERSION}
ports:
- 8404:8404
depends_on:
db:
condition: service_healthy
volumes:
- ./humhub-data:/var/lib/humhub
env_file:
- ./humhub.env
environment:
- HUMHUB_CONFIG__COMPONENTS__DB__DSN=${HUMHUB_DOCKER_DB_DSN}
- HUMHUB_CONFIG__COMPONENTS__DB__USERNAME=${HUMHUB_DOCKER_DB_USER}
- HUMHUB_CONFIG__COMPONENTS__DB__PASSWORD=${HUMHUB_DOCKER_DB_PASSWORD}
- HUMHUB_FIXED_SETTINGS__BASE__BASE_URL=https://${HUMHUB_DOCKER_DOMAIN}
- HUMHUB_FIXED_SETTINGS__BASE__CACHE_CLASS=yii\redis\Cache
- HUMHUB_CONFIG__COMPONENTS__REDIS__CLASS=yii\redis\Connection
- HUMHUB_CONFIG__COMPONENTS__REDIS__HOSTNAME=redis
- HUMHUB_CONFIG__COMPONENTS__REDIS__PORT=6379
- HUMHUB_CONFIG__COMPONENTS__REDIS__DATABASE=0
- HUMHUB_CONFIG__COMPONENTS__SESSION__CLASS=yii\redis\Session
db:
image: mariadb
restart: always
user: root
volumes:
- ./mysql-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${HUMHUB_DOCKER_DB_PASSWORD}
expose:
- 3306
healthcheck:
test: ["CMD", "/usr/local/bin/healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
caddy:
image: caddy:latest
ports:
- 80:80
- 443:443
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./caddy-data:/data
environment:
- caddydomain=${HUMHUB_DOCKER_DOMAIN}
restart: always
redis:
image: redis:6.2-alpine
ports:
- 6379:6379
restart: always
command: redis-server --save 20 1 --loglevel warning
volumes:
- cache:/data
volumes:
cache:
driver: local