-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.yaml
46 lines (45 loc) · 1005 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
44
45
46
services:
spring-boot-application:
working_dir: /build
build:
context: .
dockerfile: Dockerfile
volumes:
- istory-spring:/var/lib/spring
- type: bind
source: .
target: /build
depends_on:
- istory-db
ports:
- "8080:8080"
environment:
TZ: ${TZ}
networks:
- istory-server-network
istory-db:
image: mysql:8.0.26
restart: always
command:
- --lower_case_table_names=1
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
container_name: ${MYSQL_HOST}
ports:
- "3307:3306"
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
TZ: ${TZ}
volumes:
- istory-db:/var/lib/mysql
networks:
- istory-server-network
volumes:
istory-db:
istory-spring:
networks:
istory-server-network:
driver: bridge