-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (85 loc) · 2.05 KB
/
docker-compose.yml
File metadata and controls
91 lines (85 loc) · 2.05 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
84
85
86
87
88
89
90
91
version: '3'
services:
gateway:
container_name: gateway
build: ./gateway
image: store-gateway:latest
ports:
- "10001:5005"
- "8080:80"
environment:
JAVA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
PROFILE: "docker"
redis-order:
image: redis:6.2-alpine
restart: always
command: redis-server
db-order:
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: root-password
MYSQL_PASSWORD: password
MYSQL_USER: order
MYSQL_DATABASE: order
service-order:
container_name: service-order
build: ./service-order
image: store-service-order:latest
ports:
- "10002:5005"
- "11000:80"
environment:
JAVA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
PROFILE: "docker"
DB_ADDRESS: db-order
DB_PASSWORD: password
DB_USER: order
DB_DATABASE: order
REDIS_HOST: redis-order
depends_on:
- gateway
- redis-order
- db-order
links:
- gateway
- redis-order
- db-order
db-game:
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: root-password
MYSQL_PASSWORD: password
MYSQL_USER: game
MYSQL_DATABASE: game
mongo-game:
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: game
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: game
service-game:
container_name: service-game
build: ./service-game
image: store-service-game:latest
ports:
- "10003:5005"
- "12000:80"
environment:
JAVA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
PROFILE: "docker"
DB_ADDRESS: db-game
DB_PASSWORD: password
DB_USER: game
DB_DATABASE: game
MONGO_ADDRESS: mongo-game
MONGO_DATABASE: game
MONGO_USERNAME: game
MONGO_PASSWORD: password
depends_on:
- gateway
- mongo-game
- db-game
links:
- gateway
- mongo-game
- db-game