-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
65 lines (60 loc) · 1.44 KB
/
docker-compose.yml
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
version: "3"
services:
mysql:
container_name: tott-mysql
image: mysql/mysql-server:8.0
tty: true
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
TZ: Asia/Seoul
volumes:
- mysql-data:/var/lib/mysql
networks:
- backend_network
command:
- '--character-set-server=utf8mb4'
- '--collation-server=utf8mb4_unicode_ci'
ports:
- '3306:3306'
redis:
container_name: tott-redis
image: "redis:latest"
ports:
- "6379:6379"
volumes:
- redis-data:/var/lib/redis
networks:
- backend_network
database-adminer:
container_name: tott-db-adminer
image: adminer:latest
ports:
- "18080:8080"
environment:
- ADMINER_DEFAULT_SERVER=db-mysql
- ADMINER_DESIGN=hydra
- ADMINER_PLUGINS=tables-filter tinymce
networks:
- backend_network
backend:
container_name: ttot-backend
build: ./Backend
restart: always
ports:
- "8080:8080"
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://tott-mysql:3306/tott
SPRING_DATASOURCE_USERNAME: ${MYSQL_USER}
SPRING_DATASOURCE_PASSWORD: ${SPRING_DATASOURCE_PASSWORD}
SPRING_JPA_HIBERNATE_DDL_AUTO: update
networks:
- backend_network
networks:
backend_network:
driver: bridge
volumes:
mysql-data:
redis-data: