-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (57 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
61 lines (57 loc) · 1.25 KB
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
version: "3.7"
services:
mongo:
container_name: streamize-mongo
image: mongo
restart: always
logging:
driver: "none"
networks:
- nginx-network
healthcheck:
test: echo 'db.runCommand({serverStatus:1}).ok'
interval: 30s
timeout: 30s
retries: 3
volumes:
- /data/db
rabbitmq:
image: rabbitmq:3.8-management-alpine
environment:
- RABBITMQ_CONFIG_FILE=/etc/rabbitmq/rabbitmq.conf
restart: always
logging:
driver: "none"
networks:
- nginx-network
container_name: rabbitmq
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
volumes:
- ./src/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
app:
build:
context: .
dockerfile: Dockerfile
container_name: streamize-api
networks:
- nginx-network
restart: on-failure:5
volumes:
- /home/tmp:/home/app/tmp
- /home/downloads:/home/app/downloads
- /home/subtitles:/home/app/subtitles
command: npm start
ports:
- "3000:3000"
depends_on:
mongo:
condition: service_healthy
rabbitmq:
condition: service_healthy
networks:
nginx-network:
external: true