-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
47 lines (47 loc) · 1.14 KB
/
docker-compose.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
version: '3.8'
services:
root:
image: othello-root:latest
hostname: root
container_name: othello-root
tty: true
ports:
- "8080:8080"
depends_on:
- boardmodule
- usermodule
command: ./wait-for mysql:3306 -t 60 -- java -jar Othello.jar
boardmodule:
image: boardmodule:latest
hostname: boardmodule
container_name: boardmodule
ports:
- "8081:8081"
command: ./wait-for mysql:3306 -t 60 -- java -jar BoardModule.jar
depends_on:
- mysql
usermodule:
image: usermodule:latest
hostname: usermodule
container_name: usermodule
ports:
- "8082:8082"
depends_on:
- mysql
command: ./wait-for mysql:3306 -t 60 -- java -jar UserModule.jar
# mongo:
# image: othello-mongodb:latest
# hostname: mongo
# container_name: mongo
# ports:
# - "27017:27017"
mysql:
image: othello-mysql:latest
hostname: mysql
container_name: othello-mysql
# Database and root password are read from .env file
environment:
MYSQL_DATABASE: "${MYSQL_DATABASE}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
ports:
- "3306:3306"