-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.stage.yml
64 lines (63 loc) · 1.53 KB
/
docker-compose.stage.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
55
56
57
58
59
60
61
62
63
64
# docker compose -f docker-compose.stage.yml up --build -d --force-recreate
# docker compose -f docker-compose.stage.yml down -v --rmi local --remove-orphans --timeout 0
version: '0.1'
services:
nginx:
image: nginx:latest
ports:
- "8010:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./privkey.pem:/etc/nginx/privkey.pem
- ./fullchain.pem:/etc/nginx/fullchain.pem
restart: always
environment:
- TZ=Asia/Seoul
server:
image: moon-zip-backend
build:
context: .
dockerfile: ./Dockerfile
target: production
restart: always
ports:
- '3000:3000'
volumes:
- /usr/src/logs:/usr/src/app/logs
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
volumes:
- db:/var/lib/postgresql/data
redis-jwt:
image: redis:latest
environment:
- REDIS_PASSWORD=${REDIS_JWT_PASSWORD}
- TZ=Asia/Seoul
command: ["redis-server", "--requirepass", "${REDIS_JWT_PASSWORD}"]
volumes:
- jwt-server:/data
redis-cache:
image: redis:latest
environment:
- REDIS_PASSWORD=${REDIS_CACHE_PASSWORD}
- TZ=Asia/Seoul
command: ["redis-server", "--requirepass", "${REDIS_CACHE_PASSWORD}"]
volumes:
- cache-server:/data
volumes:
db:
jwt-server:
cache-server: