-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
56 lines (53 loc) · 1.34 KB
/
docker-compose.dev.yaml
File metadata and controls
56 lines (53 loc) · 1.34 KB
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
version: '3.8'
services:
api:
build:
context: .
dockerfile: Dockerfile.dev
container_name: gglk-api-dev
restart: always
ports:
- '8000:8000'
environment:
- NODE_ENV=development
- DB_HOST=postgres
- DB_NAME=${DB_NAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_USER=${DB_USER}
- DB_PORT=5432
- NCP_ENDPOINT=${NCP_ENDPOINT}
- NCP_ACCESS_KEY_ID=${NCP_ACCESS_KEY_ID}
- NCP_SECRET_ACCESS_KEY=${NCP_SECRET_ACCESS_KEY}
- NCP_REGION=${NCP_REGION}
- NCP_BUCKET=${NCP_BUCKET}
- JWT_SECRET=${JWT_SECRET}
- KAKAO_CLIENT_ID=${KAKAO_CLIENT_ID}
- KAKAO_REDIRECT_DEV_URI=${KAKAO_REDIRECT_DEV_URI}
- PORT=8000
- FRONTEND_DEV_URL=${FRONTEND_DEV_URL}
- OPENAI_API_KEY=${OPENAI_API_KEY}
depends_on:
postgres:
condition: service_healthy
volumes:
- .:/app
tty: true
postgres:
image: postgres:17
container_name: gglk-db-dev
restart: always
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- ${DB_PORT}:${DB_PORT}
volumes:
- db_persist_dev:/var/lib/postgresql/data
healthcheck:
test: ['CMD', 'pg_isready', '-U', 'postgres']
interval: 10s
timeout: 5s
retries: 5
volumes:
db_persist_dev: