-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
53 lines (52 loc) · 1.06 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
services:
char-db:
image: mysql
container_name: char-db-mysql
restart: always
environment:
MYSQL_DATABASE: 'characters'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'password'
ports:
- '3306:3306'
expose:
- '3306'
volumes:
- char-db:/var/lib/mysql
user-db:
image: mysql
container_name: user-db-mysql
restart: always
environment:
MYSQL_DATABASE: 'users'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'password'
ports:
- '3307:3306'
expose:
- '3306'
volumes:
- user-db:/var/lib/mysql
mud:
container_name: gmud
build: .
ports:
- "1234:1234" # fgtrace but doesnt work
- "2222:2222"
- "8081:8081"
volumes:
- .:/code
command: "./app"
environment:
- WAIT_HOSTS=mysql:3306
- WAIT_HOSTS_TIMEOUT=300
- WAIT_SLEEP_INTERVAL=30
- WAIT_HOST_CONNECT_TIMEOUT=30
depends_on:
- char-db
- user-db
volumes:
char-db:
user-db: