-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (70 loc) · 2.04 KB
/
docker-compose.yml
File metadata and controls
76 lines (70 loc) · 2.04 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
version: '3'
services:
mysql-container:
image: test_mysql-container
build:
context: .
dockerfile: /mysql-container/Dockerfile
args:
DATABASE_SCHEMA: /mysql-container/schema.sql
expose:
- 3306
volumes:
- /var/lib/docker/mysql/data:/var/lib/mysql
- /var/lib/docker/mysql/config:/etc/mysql/conf.d
studentservice:
image: test_studentservice
build:
context: .
dockerfile: /services/Dockerfile
args:
JAR_FILE: /studentservice/student-0.1.jar
EXPOSE: 8090
ports:
- 8090:8090
deploy:
replicas: 1
restart_policy:
condition: on-failure
links:
- mysql-container
command: ["/wait-for-it.sh", "mysql-container:3306", "-t", "120"]
roomservice:
image: test_roomservice
build:
context: .
dockerfile: /services/Dockerfile
args:
JAR_FILE: /roomservice/room-0.1.jar
EXPOSE: 8080
ports:
- 8081:8080
deploy:
replicas: 0
restart_policy:
condition: on-failure
links:
- mysql-container
command: ["/wait-for-it.sh", "mysql-container:3306", "-t", "120"]
lectureservice:
image: test_lectureservice
build:
context: .
dockerfile: /services/Dockerfile
args:
JAR_FILE: /lectureservice/lecture-0.1.jar
EXPOSE: 8070
ports:
- 8070:8070
deploy:
replicas: 0
restart_policy:
condition: on-failure
links:
- mysql-container
command: ["/wait-for-it.sh", "mysql-container:3306", "-t", "120"]
frontend:
image: test_frontend
build: ./frontend
ports:
- 80:80