-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
122 lines (114 loc) · 2.4 KB
/
docker-compose.yml
File metadata and controls
122 lines (114 loc) · 2.4 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
version: "3.8"
services:
tutorial-api:
build:
context: ./api
args:
jar: ./target/tutorial-api.jar
dockerfile: Dockerfile
image: tutorial-api:${VERSION:-latest}
container_name: tutorial-api
ports:
- "3000:3000"
volumes:
- api:/tmp
networks:
- tutorial
environment:
TZ: "Asia/Bangkok"
tutorial-h2:
build:
context: ./h2
args:
jar: ./target/tutorial-h2.jar
dockerfile: Dockerfile
image: tutorial-h2:${VERSION:-latest}
container_name: tutorial-h2
ports:
- "3001:3001"
volumes:
- h2:/tmp
networks:
- tutorial
environment:
TZ: "Asia/Bangkok"
tutorial-jpa:
build:
context: ./jpa
args:
jar: ./target/tutorial-jpa.jar
dockerfile: Dockerfile
image: tutorial-jpa:${VERSION:-latest}
container_name: tutorial-jpa
ports:
- "3002:3002"
volumes:
- jpa:/tmp
networks:
- tutorial
environment:
TZ: "Asia/Bangkok"
tutorial-structure:
build:
context: ./structure
args:
jar: ./target/tutorial-structure.jar
dockerfile: Dockerfile
image: tutorial-structure:${VERSION:-latest}
container_name: tutorial-structure
ports:
- "3003:3003"
volumes:
- structure:/tmp
networks:
- tutorial
environment:
TZ: "Asia/Bangkok"
tutorial-jdbc:
build:
context: ./jdbc
args:
jar: ./target/tutorial-jdbc.jar
dockerfile: Dockerfile
image: tutorial-jdbc:${VERSION:-latest}
container_name: tutorial-jdbc
ports:
- "3004:3004"
volumes:
- jdbc:/tmp
networks:
- tutorial
environment:
TZ: "Asia/Bangkok"
tutorial-openapi:
build:
context: ./openapi
args:
jar: ./target/tutorial-openapi.jar
dockerfile: Dockerfile
image: totorial-opanapi:${VERSION:-latest}
container_name: tutorial-openapi
ports:
- "3005:3005"
volumes:
- opanapi:/tmp
networks:
- tutorial
environment:
TZ: "Asia/Bangkok"
volumes:
api:
driver: local
h2:
driver: local
jpa:
driver: local
structure:
driver: local
jdbc:
driver: local
openapi:
driver: local
networks:
tutorial:
driver: bridge