-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
84 lines (72 loc) · 1.84 KB
/
docker-compose.yaml
File metadata and controls
84 lines (72 loc) · 1.84 KB
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
79
80
81
82
83
version: '3'
services:
configuration:
image: aui-configuration
restart: always
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: "http://eureka:8080/eureka"
volumes:
- "./configuration:/var/lab7-configuration/configuration"
eureka:
image: aui-eureka
restart: always
ports:
- "8085:8080"
db_game:
image: mariadb:10.10
restart: always
environment:
# MARIADB_ROOT_PASSWORD: "admin"
# MARIADB_DATABASE: "game"
# MARIADB_ROOT_HOST: '%'
# MARIADB_USER: "user2"
# MARIADB_PASSWORD: "admin"
- "MYSQL_ROOT_PASSWORD=admin"
- "MYSQL_DATABASE=game"
- "MYSQL_ROOT_HOST=%"
volumes:
- db_game_data:/var/lib/mysql
db_developer:
image: mariadb:10.10
restart: always
environment:
MARIADB_ROOT_PASSWORD: "admin"
MARIADB_DATABASE: "developer"
MARIADB_ROOT_HOST: '%'
MARIADB_USER: "user"
MARIADB_PASSWORD: "admin"
volumes:
- db_developer_data:/var/lib/mysql
game-1:
image: aui-game
restart: always
environment:
EUREKA_INSTANCE_INSTANCE_ID: "1"
SPRING_CONFIG_IMPORT: "configserver:http://configuration:8080"
game-2:
image: aui-game
restart: always
environment:
EUREKA_INSTANCE_INSTANCE_ID: "2"
SPRING_CONFIG_IMPORT: "configserver:http://configuration:8080"
developer:
image: aui-developer
restart: always
environment:
SPRING_CONFIG_IMPORT: "configserver:http://configuration:8080"
gateway:
image: aui-gateway
restart: always
environment:
SPRING_CONFIG_IMPORT: "configserver:http://configuration:8080"
LAB4_GATEWAY_HOST: "gateway:8080"
angular:
image: aui-angular
restart: always
environment:
API_URL: http://gateway:8080/api
ports:
- "8090:80"
volumes:
db_game_data:
db_developer_data: