-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
96 lines (90 loc) · 2.3 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
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
92
93
94
95
96
version: '3.5'
services:
minio:
container_name: minio-s3-storage
image: "minio/minio"
ports:
- "9000:9000"
env_file:
- docker-compose.env
command: server /data
networks:
- network
postgres:
container_name: postgres-database
image: postgres:10.5
restart: always
env_file:
- docker-compose.env
logging:
options:
max-size: 10m
max-file: "3"
ports:
- '5432:5432'
networks:
- network
broker:
container_name: message-broker
image: rabbitmq:3.8.2-management-alpine
env_file:
- docker-compose.env
ports:
- "15672:15672"
- "5672:5672"
networks:
- network
audio:
build: ./src/workers
container_name: audio-workers
env_file:
- docker-compose.env
links:
- broker:broker
- minio:minio
volumes:
- ${PWD}/src/workers/:/workers
- ${PWD}/src/common:/workers/common
networks:
- network
# command: celery -A audio.tasks worker --loglevel=INFO
# For development
command: watchmedo auto-restart --directory=audio --pattern=tasks.py --recursive -- celery -A audio.tasks worker --loglevel=INFO
api:
build: ./src/api
container_name: api
env_file:
- docker-compose.env
links:
- broker:broker
- minio:minio
ports:
- "5000:5000"
networks:
- network
volumes:
- ${PWD}/src/api:/api
- ${PWD}/src/common:/api/common
client:
build: ./src/client
container_name: client
environment:
#- NODE_ENV=development
- API_URL=http://api:5000
links:
- api:api
ports:
- "3000:3000"
networks:
- network
depends_on:
- api
# network_mode: host
# Uncomment for front end dev work
volumes:
- ${PWD}/src/client:/app
- /app/build
- /app/public
- /app/node_modules
networks:
network: {}