-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
57 lines (52 loc) · 1.03 KB
/
docker-compose.prod.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
version: '3.8'
services:
postgres:
container_name: postgres
image: postgres:14
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_INITDB_ARGS=--encoding=UTF-8
expose:
- 5432
ports:
- 15432:5432
volumes:
- ./data/postgres/pgdata/data:/var/lib/postgresql/data
restart: always
redis:
container_name: redis
image: redis:7-alpine
hostname: redis
command: redis-server --port 6379
labels:
- "name=redis"
- "mode=standalone"
expose:
- 6379
ports:
- 16379:6379
restart: always
api:
container_name: api
image: api
environment:
- TZ=Asia/Seoul
- NODE_ENV=production
ports:
- 19595:9595
links:
- postgres:postgres
depends_on:
- redis
- postgres
web:
container_name: web
image: web
environment:
- TZ=Asia/Seoul
ports:
- 13000:3000
depends_on:
- api