-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
66 lines (61 loc) · 1.3 KB
/
docker-compose.yaml
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
version: '3'
services:
ngx:
image: 'nginx:alpine'
container_name: 'qg-ngx'
restart: always
ports:
- '8080:8080'
depends_on:
- postgres
- redis
- rabbitmq
- qg
volumes:
- ./deploy/nginx.conf:/etc/nginx/conf.d/default.conf
postgres:
image: 'postgres:latest'
container_name: 'postgres-qg'
environment:
POSTGRES_PASSWORD: 'postgres_qg'
POSTGRES_USER: 'postgres_qg'
POSTGRES_DB: 'QG'
volumes:
- /mnt/db:/var/lib/postgresql/data
restart: always
command: '-p 8081'
ports:
- '8081:8081'
redis:
image: 'bitnami/redis:latest'
container_name: 'qg-redis'
environment:
ALLOW_EMPTY_PASSWORD: 'yes'
deploy:
resources:
limits:
memory: 500M
rabbitmq:
restart: always
image: 'rabbitmq:3-management'
container_name: 'qg-rabbitmq'
environment:
- 'RABBITMQ_DEFAULT_USER=rabbitMQAdmin'
- 'RABBITMQ_DEFAULT_PASS=rabbitMQAdmin'
ports:
- 5672:5672
- 15672:15672
qg:
image: qg
container_name: qg
build:
context: .
dockerfile: deploy/Dockerfile
depends_on:
- postgres
- redis
- rabbitmq
environment:
NODE_ENV: production
entrypoint: ['npm', 'run', 'cluster']
restart: always