forked from usefathom/fathom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (34 loc) · 919 Bytes
/
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
version: "3"
services:
fathom:
image: usefathom/fathom:latest
ports:
- "8080:8080"
environment:
- "FATHOM_SERVER_ADDR=:8080"
- "FATHOM_GZIP=true"
- "FATHOM_DEBUG=false"
- "FATHOM_DATABASE_DRIVER=mysql"
- "FATHOM_DATABASE_NAME=fathom"
- "FATHOM_DATABASE_USER=fathom"
- "FATHOM_DATABASE_PASSWORD=password01"
- "FATHOM_DATABASE_HOST=mysql:3306"
- "FATHOM_SECRET=TWEn6GXQDx45PZfmJWvyGpXf5M8b94bszgw8JcJWEd6WxgrnUkLatS34GwjPTvZb"
links:
- "mysql:mysql"
depends_on:
- mysql
restart: always
mysql:
image: "mysql:5"
volumes:
- ./mysql-data:/var/lib/mysql
ports:
- "127.0.0.1:3306:3306"
environment:
- "MYSQL_ALLOW_EMPTY_PASSWORD=false"
- "MYSQL_DATABASE=fathom"
- "MYSQL_PASSWORD=password01"
- "MYSQL_ROOT_PASSWORD=password01"
- "MYSQL_USER=fathom"
restart: always