-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (56 loc) · 1.29 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
version: "3"
services:
# frontend:
# container_name: crepe-frontend
# build:
# context: ./frontend
# dockerfile: Dockerfile
# ports:
# - "3000:3000"
# volumes:
# - ./frontend:/app
# networks:
# - network-tier
redis:
image: redis:latest
command: redis-server --port 6379
container_name: crepe-redis
ports:
- '6379:6379'
backend:
container_name: crepe-backend
build: ./backend
# restart: on-failure
depends_on:
- mysqldb
ports:
- '8080:8080'
environment:
spring.datasource.url: "jdbc:mysql://crepe-mysqldb:3306/test_db?useSSL=false&useLegacyDatetimeCode=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Seoul&characterEncoding=UTF-8&autoReconnect=true&createDatabaseIfNotExist=true"
volumes:
- ./backend:/backend
networks:
- network-tier
tty: true
mysqldb:
image: mysql:5.7
container_name: crepe-mysqldb
env_file:
- "./.env"
command:
[
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_ci",
]
volumes:
- mysql-data:/var/lib/bauction
ports:
- "3306:3306"
networks:
- network-tier
platform: linux/amd64
networks:
network-tier:
external: true
volumes:
mysql-data: