forked from markoboger/htwg-scala-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (69 loc) · 1.36 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
version: "3.8"
services:
sqldb:
image: mysql
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: MILL
MYSQL_DATABASE: mill
MYSQL_USER: mill
MYSQL_PASSWORD: mill
volumes:
- .:/var/lib/sql/mill
mongodb:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: MILL
ports:
- "27017:27017"
volumes:
- .:/var/lib/mongo/mill
player:
build:
context: ./Player
ports:
- "8081:8081"
depends_on:
- sqldb
- mongodb
environment:
- DATABASE_HOST=sqldb:3306
- MONGODB_HOST=mongodb:27017
fileio:
build:
context: ./FileIO
ports:
- "8082:8082"
depends_on:
- sqldb
- mongodb
environment:
- DATABASE_HOST=sqldb:3306
- MONGODB_HOST=mongodb:27017
volumes:
- .:/gameSaves
roundmanager:
build:
context: ./RoundManager
ports:
- "8083:8083"
depends_on:
- player
environment:
- PLAYERHTTPSERVER=player:8081
root:
build: .
ports:
- "8080:8080"
depends_on:
- fileio
- roundmanager
environment:
- DISPLAY=host.docker.internal:0
- PLAYERHTTPSERVER=player:8081
- FILEIOHTTPSERVER=fileio:8082
- ROUNDMANAGERHTTPSERVER=roundmanager:8083