-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
43 lines (39 loc) · 960 Bytes
/
compose.yaml
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
version: '3.8'
services:
oral:
build:
context: ./
dockerfile: Dockerfile
depends_on:
- db
ports:
- "8080:8080"
environment:
SPRING_DATASOURCE_DRIVER_CLASS_NAME: com.mysql.cj.jdbc.Driver
SPRING_DATASOURCE_URL: jdbc:mysql://db:3306/ttttt?useUnicode=true&characterEncoding=utf-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: 136623
networks:
- mynet
db:
image: mysql:8.0.27
environment:
MYSQL_ROOT_PASSWORD: 136623
MYSQL_DATABASE: ttttt
ports:
- "3306:3306"
volumes:
- ./db:/docker-entrypoint-initdb.d
networks:
- mynet
command: --bind-address=0.0.0.0
oral_front:
build:
context: src/main/resources/admin/admin
dockerfile: Dockerfile
ports:
- "8081:8080"
networks:
- mynet
networks:
mynet: