-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (50 loc) · 1.36 KB
/
docker-compose.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
version: '3'
services:
rabbitmq-server:
container_name: rabbitmq-server
build:
context: ./rabbitmq-server
dockerfile: Dockerfile
hostname: rabbitmq-01
ports:
- '15672:15672'
env_file:
- ./rabbitmq-server/container.env
volumes:
- ./www:/var/www/:cached
- ./rabbitmq-server/config:/etc/rabbitmq
queue-publisher:
container_name: queue-publisher
build:
context: ./node-server
dockerfile: Dockerfile
volumes:
- ./www:/var/www/:cached
- ./node-server/supervisor:/etc/supervisor.d/
command: ['tail', '-f', '/dev/null']
# command:
# [
# '/bin/bash',
# '-c',
# 'python2 /usr/bin/supervisord --nodaemon --configuration /etc/supervisor/supervisord.conf',
# ]
queue-worker-01:
container_name: queue-worker-01
build:
context: ./node-server
dockerfile: Dockerfile
volumes:
- ./www:/var/www/:cached
- ./node-server/supervisor:/etc/supervisor.d/
# command: ['tail', '-f', '/dev/null']
command: supervisord --nodaemon
queue-worker-02:
container_name: queue-worker-02
build:
context: ./node-server
dockerfile: Dockerfile
volumes:
- ./www:/var/www/:cached
- ./node-server/supervisor:/etc/supervisor.d/
# command: ['tail', '-f', '/dev/null']
command: supervisord --nodaemon