-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (50 loc) · 1.59 KB
/
docker-compose.yml
File metadata and controls
52 lines (50 loc) · 1.59 KB
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
services:
znuny:
build:
context: ./znuny
args:
ZNUNY_VERSION: ${ZNUNY_VERSION:-7.2.1}
image: ghcr.io/${GITHUB_REPOSITORY_OWNER:-ckbaker10}/znuny:${ZNUNY_VERSION:-7.2.1}
restart: unless-stopped
ports:
- "127.0.0.1:${ZNUNY_HTTP_PORT:-8080}:80"
depends_on:
mariadb:
condition: service_healthy
env_file: .env
volumes:
# Znuny configuration (Config.pm and friends)
- ./volumes/config:/opt/znuny/Kernel
# Article attachments (only relevant when using ArticleStorageFS)
- ./volumes/article:/opt/znuny/var/article
# Automated backup output
- ./volumes/backups:/var/znuny/backups
# Drop .opm addon files here to auto-install at startup
- ./volumes/addons:/opt/znuny/addons
# Keep container time in sync with host
- /etc/localtime:/etc/localtime:ro
mariadb:
image: mariadb:10.11
restart: unless-stopped
expose:
- "3306"
env_file: .env
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-changeme}
MYSQL_DATABASE: ${ZNUNY_DB_NAME:-znuny}
MYSQL_USER: ${ZNUNY_DB_USER:-znuny}
MYSQL_PASSWORD: ${ZNUNY_DB_PASSWORD:-changeme}
command:
- --max-allowed-packet=256M
- --innodb-log-file-size=256M
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 12
start_period: 30s
volumes:
- ./volumes/mysql:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro