forked from osu-cs493-599-sp24/final-project-_team33
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (59 loc) · 1.27 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
version: "3"
services:
mongo:
image: mongo:4.4
environment:
- MONGO_INITDB_DATABASE=tarpaulin
- MONGO_INITDB_ROOT_USERNAME=userteam33
- MONGO_INITDB_ROOT_PASSWORD=passwordteam33
volumes:
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- mongodb_data_33:/data/db
ports:
- 27017:27017
networks:
- final_project
mq:
image: rabbitmq:3-management
ports:
- 5672:5672
- 15672:15672
networks:
- final_project
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:15672"]
interval: 30s
timeout: 10s
retries: 5
redis:
image: redis:6
restart: always
ports:
- "6379:6379"
networks:
- final_project
api:
build:
context: .
dockerfile: ./backend/Dockerfile
image: team-33-api:latest
command: npm start
restart: on-failure
ports:
- 3000:3000
environment:
- MONGO_URL=mongodb://userteam33:passwordteam33@mongo:27017/tarpaulin
- REDIS_URL=redis://redis:6379
- MQ_URL=amqp://mq:5672
depends_on:
- mongo
- mq
networks:
- final_project
networks:
final_project:
driver: bridge
volumes:
mongodb_data_33:
driver: local
name: mongodb_data_33