-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (40 loc) · 1.16 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
version: '3.4'
services:
db:
image: mysql:8.0
ports:
- '${DB_PORT}:3306'
environment:
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_USER=${DB_USER_NAME}
- MYSQL_PASSWORD=${DB_USER_PASSWORD}
- MYSQL_ALLOW_EMPTY_PASSWORD=true
- MYSQL_INITDB_ARGS=--encoding=UTF-8
- TZ=UTC
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
healthcheck:
test: 'mysqladmin ping -h localhost -u ${DB_USER_NAME} --password=${DB_USER_PASSWORD}'
interval: 5s
timeout: 1s
retries: 20
start_period: 0s
volumes:
- ./data/db:/var/lib/mysql
api:
image: 42world/rookies-inpyeon-backend
ports:
- '${PORT}:${PORT}'
environment:
- PHASE=${PHASE}
- PORT=${PORT}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_NAME=${DB_NAME}
- DB_USER_NAME=${DB_USER_NAME}
- DB_USER_PASSWORD=${DB_USER_PASSWORD}
- KAKAO_CLIENT_ID=${KAKAO_CLIENT_ID}
- KAKAO_CALLBACK_URL=${KAKAO_CALLBACK_URL}
- FRONT_URL=${FRONT_URL}
- ORIGIN_LIST=${ORIGIN_LIST}
- JWT_SECRET=${JWT_SECRET}
- ACCESS_TOKEN_KEY=${ACCESS_TOKEN_KEY}