-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (73 loc) · 1.62 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: "2.2"
services:
core:
build: bot/
restart: always
environment:
bot_nickname: "UnboundMedia"
utopia_host: "diano-utopia-api"
utopia_token: "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
utopia_port: "22825"
db_host: "mysql-db"
db_user: "root"
db_pass: "pass"
db_name: "diano"
db_enabled: 1
max_file_size_mb: 10
is_debug: 1
CRON_SPEC: every 10m
DISABLE_ENV_PARSE: 1
depends_on:
- utopia-api
- db
networks:
- unetwork
volumes:
- './redirects:/app/cache'
stdin_open: true
tty: true
utopia-api:
image: uto9234/utopia-api
hostname: diano-utopia-api
restart: always
ports:
- 22825:22825
environment:
XDG_RUNTIME_DIR: /tmp/runtime-root
networks:
- unetwork
volumes:
- type: bind
source: ./account.db
target: /app/account.db
logging:
driver: "local"
options:
max-size: "5m"
max-file: "5"
db:
command: mkdir db
image: mysql:5.7
container_name: mysql-db
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: "pass"
MYSQL_DATABASE: "diano"
MYSQL_USER: "user"
MYSQL_PASSWORD: "pass"
ports:
- 3318:3306
volumes:
#- ./db:/var/lib/mysql
- ./bot/migrations:/docker-entrypoint-initdb.d
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
networks:
- unetwork
logging:
driver: "local"
networks:
unetwork:
driver: bridge
volumes:
redirects: