-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
54 lines (53 loc) · 1.32 KB
/
docker-compose.dev.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
# docker compose -f docker-compose.dev.yml up --build --force-recreate
# docker compose -f docker-compose.dev.yml down -v --rmi local --remove-orphans --timeout 0
version: '0.1'
services:
nginx:
image: nginx:latest
ports:
- "8010:80"
volumes:
- ./nginx.dev.conf:/etc/nginx/nginx.conf
environment:
- TZ=Asia/Seoul
restart: always
server:
image: moon-zip-backend
build:
context: .
dockerfile: ./Dockerfile.dev
target: development
command: npm run ${cmd:-start:dev}
restart: always
ports:
- '3000:3000'
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
environment:
- TZ=Asia/Seoul
depends_on:
- db
- redis-jwt
- redis-cache
db:
image: postgres:15-alpine
ports:
- '5432:5432'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
- TZ=Asia/Seoul
redis-jwt:
image: redis:latest
environment:
- REDIS_PASSWORD=${REDIS_JWT_PASSWORD}
- TZ=Asia/Seoul
command: ["redis-server", "--requirepass", "${REDIS_JWT_PASSWORD}"]
redis-cache:
image: redis:latest
environment:
- REDIS_PASSWORD=${REDIS_CACHE_PASSWORD}
- TZ=Asia/Seoul
command: ["redis-server", "--requirepass", "${REDIS_CACHE_PASSWORD}"]