forked from rycando/WAP_term_project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 892 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (40 loc) · 892 Bytes
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.8"
services:
db:
image: mysql:8
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: campusbook
MYSQL_USER: campusbook
MYSQL_PASSWORD: password
ports:
- "3307:3306"
volumes:
- db_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
server:
build: ./server
depends_on:
db:
condition: service_healthy
environment:
DB_HOST: db
DB_PORT: 3306
DB_USER: campusbook
DB_PASSWORD: password
DB_NAME: campusbook
SESSION_SECRET: supersecret
NAVER_CLIENT_ID: 4V2LuQn3PgIogfms_vGz
NAVER_CLIENT_SECRET: 3C9tXtwoeD
ports:
- "4000:4000"
volumes:
- ./server/uploads:/app/uploads
volumes:
db_data: