-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
91 lines (85 loc) · 1.84 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: "3"
services:
db:
image: postgres
container_name: postgres
restart: always
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
TZ: Asia/Seoul
ports:
- "5433:5432"
volumes:
- ./data/:/var/lib/postgresql/data
backend:
container_name: backend
build:
context: ./backend
dockerfile: Dockerfile
restart: unless-stopped
environment:
- TZ=Asia/Seoul
- NODE_ENV=development
ports:
- "8000:8000"
depends_on:
- db
volumes:
- ./backend:/backend
- /backend/node_modules
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3001:3001"
depends_on:
- backend
volumes:
- ./frontend/:/frontend
- build_folder:/frontend/dist
tty: true
nginx:
container_name: nginx
build:
context: ./nginx
dockerfile: Dockerfile
restart: always
ports:
- "80:80"
depends_on:
- backend
- frontend
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/nginx.conf
- build_folder:/var/www/frontend
rabbitmq:
image: "rabbitmq:3-management"
container_name: rabbitmq
ports:
- "5672:5672" # RabbitMQ AMQP 포트
- "15672:15672" # RabbitMQ 관리자 포트
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
restart: always
redis:
image: "redis"
container_name: redis
build:
context: ./redis
dockerfile: Dockerfile
ports:
- "6379:6379"
redis-insight:
image: "redislabs/redisinsight:latest"
container_name: "my-redis-insight"
ports:
- "8001:8001"
depends_on:
- redis
volumes:
build_folder: null