-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yaml
51 lines (51 loc) · 1.28 KB
/
docker-compose.example.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
version: "3.2"
# you may need to run
# mkdir -p database/mysql && sudo chown 1001:10001 -R ./database
# before starting up the container the first time
services:
mysql:
container_name: mysql
image: percona:ps-8.0
ports:
- "127.0.0.1:3306:3306"
volumes:
- ./database/mysql:/var/lib/mysql
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
# - ./my.cnf:/etc/mysql/my.cnf
environment:
- MYSQL_USER=emage
- MYSQL_PASSWORD=emage
- MYSQL_DATABASE=emage
- MYSQL_ROOT_PASSWORD=emageroot
restart: always
e-mage:
container_name: e-mage
image: 'odyseeteam/e-mage:latest'
restart: always
logging:
driver: "json-file"
options:
max-size: "1M"
max-file: "3"
labels:
com.centurylinklabs.watchtower.enable: true
ports:
- "6456:6456"
volumes:
- "./config.json:/app/config.json"
entrypoint: >
/app/dist/linux_amd64/e-mage serve
depends_on:
- mysql
environment:
- SPACE_USE_DB=true
watchtower:
container_name: watchtower
image: 'containrrr/watchtower'
restart: always
command: "--interval 90 --cleanup --label-enable"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
# environment:
# - REPO_USER=
# - REPO_PASS=