-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (43 loc) · 1.02 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
version: '3.9'
services:
multivisor:
# https://pypi.org/project/multivisor/
container_name: multivisor_test
build: ./multivisor
env_file: ./multivisor/.env
volumes:
- ./multivisor/multivisor:/multivisor
ports:
# port for a multivisor GUI. http://localhost:22000/view/process
- '22000:22000'
command: multivisor -c /multivisor/multivisor.conf
networks:
- testnet
service-a:
container_name: service-a
build: ./service-a
env_file: ./service-a/.env
working_dir: /app
ports:
- '8000:8000'
volumes:
- ./service-a/app:/app
- ./service-a/supervisor:/etc/supervisor
command: supervisord
networks:
- testnet
service-b:
container_name: service-b
build: ./service-b
env_file: ./service-b/.env
working_dir: /app
ports:
- '8001:8000'
volumes:
- ./service-b/app:/app
- ./service-a/supervisor:/etc/supervisor
command: supervisord
networks:
- testnet
networks:
testnet: