forked from jiphyeonjeon-42/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml_bak
43 lines (40 loc) · 938 Bytes
/
docker-compose.yaml_bak
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'
services:
database:
platform: linux/x86_64
container_name: database
image: mysql:8.0
environment:
- TZ=Asia/Seoul
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
ports:
- 3306:3306
volumes:
- ./database:/docker-entrypoint-initdb.d:ro
- ./database/data:/var/lib/mysql
migration:
container_name: migration
build:
context: ./migration
volumes:
- ./migration/migrations:/migrations
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
backend:
container_name: backend
build:
context: ./backend
volumes:
- ./backend/src:/src
command: ${MODE}
ports:
- 3000:3000
- 80:80
env_file: .env
volumes:
db_data: