-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.mysql.yml
57 lines (53 loc) · 1.28 KB
/
compose.mysql.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
services:
mysql:
image: mariadb:10.6
hostname: database
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
ports:
- "127.0.0.1:3306:3306"
volumes:
- mysql:/var/lib/mysql:Z
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=nextcloud
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
healthcheck:
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
nextcloud:
image: nextcloud:30
ports:
- "127.0.0.1:8080:80"
volumes:
- .:/var/www/html/custom_apps/nextmail:z
- nextcloud:/var/www/html:Z
environment:
- MYSQL_HOST=database
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=root
- MYSQL_PASSWORD=root
- NEXTCLOUD_ADMIN_USER=admin
- NEXTCLOUD_ADMIN_PASSWORD=admin
depends_on:
mysql:
condition: service_healthy
stalwart:
image: stalwartlabs/mail-server:v0.10.3
hostname: stalwart
ports:
- "127.0.0.1:9090:8080"
volumes:
- stalwart:/opt/stalwart-mail:Z
depends_on:
mysql:
condition: service_healthy
networks:
default:
volumes:
nextcloud:
mysql:
stalwart: