-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose_init.yaml
69 lines (66 loc) · 1.87 KB
/
compose_init.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: "3"
services:
yokai_server_game:
image: hellodudu86/yokai_server_game
container_name: yokai_server_game
command: "-config_file=../../config/game/config.toml"
restart: unless-stopped
ports:
- "7030:7030"
volumes:
- "./config/game/:/app/config/game"
- "./config/entry/:/app/config/entry"
environment:
MICRO_SERVER_ID: 1001
#MICRO_REGISTRY: "consul"
#MICRO_REGISTRY_ADDRESS: "host.docker.internal:8500"
#MICRO_BROKER: "nsq"
#MICRO_BROKER_ADDRESS: "host.docker.internal:4150"
depends_on:
- "mysql"
#- "consul"
#- "nsqd"
#- "loki"
#logging:
#driver: loki
#options:
#loki-url: http://host.docker.internal:3100/api/prom/push
#loki-retries: "5"
#loki-batch-size: "400"
yokai_server_battle:
image: hellodudu86/yokai_server_battle
container_name: yokai_server_battle
command: "-config_file=../../config/battle/config.toml"
restart: unless-stopped
volumes:
- "./config/battle/:/app/config/battle"
- "./config/entry/:/app/config/entry"
environment:
MICRO_SERVER_ID: 2001
#MICRO_REGISTRY: "consul"
#MICRO_REGISTRY_ADDRESS: "host.docker.internal:8500"
#MICRO_BROKER: "nsq"
#MICRO_BROKER_ADDRESS: "host.docker.internal:4150"
depends_on:
- "mysql"
#- "consul"
#- "nsqd"
#- "loki"
#logging:
#driver: loki
#options:
#loki-url: http://host.docker.internal:3100/api/prom/push
#loki-retries: "5"
#loki-batch-size: "400"
mysql:
image: mysql
container_name: mysql
environment:
MYSQL_USER: 'root'
MYSQL_ROOT_PASSWORD: "123456"
ports:
- "3306:3306"
volumes:
- ./data/database/:/var/lib/mysql
- ./backup/:/backup
- ./config/sql/dump.sql:/docker-entrypoint-initdb.d/dump.sql