-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathcompose.yml
52 lines (49 loc) · 1.02 KB
/
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
name: flarum
services:
db:
image: mariadb:10
container_name: flarum_db
command:
- "mysqld"
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
volumes:
- "./db:/var/lib/mysql"
environment:
- "TZ"
- "MARIADB_RANDOM_ROOT_PASSWORD=yes"
- "MYSQL_DATABASE"
- "MYSQL_USER"
- "MYSQL_PASSWORD"
restart: always
msmtpd:
image: crazymax/msmtpd:latest
container_name: flarum_msmtpd
env_file:
- "./msmtpd.env"
environment:
- "TZ"
restart: always
flarum:
image: crazymax/flarum:latest
container_name: flarum
ports:
- target: 8000
published: 8000
protocol: tcp
depends_on:
- db
- msmtpd
volumes:
- "./data:/data"
environment:
- "TZ"
- "PUID"
- "PGID"
- "DB_HOST=db"
- "DB_NAME=${MYSQL_DATABASE}"
- "DB_USER=${MYSQL_USER}"
- "DB_PASSWORD=${MYSQL_PASSWORD}"
env_file:
- "./flarum.env"
restart: always