-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (59 loc) · 1.32 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (59 loc) · 1.32 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
62
63
64
version: "3.8"
services:
mongo:
image: mongo:6
container_name: lead-scoring-mongo
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--quiet", "--eval", "db.adminCommand('ping')"]
interval: 3s
timeout: 3s
retries: 10
redis:
image: redis:7
container_name: lead-scoring-redis
ports:
- "6379:6379"
worker:
build:
context: .
dockerfile: ./worker/Dockerfile
container_name: lead-scoring-worker
env_file: .env
environment:
- MONGO_URI=mongodb://mongo:27017/lead-scoring-db
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_TLS=false
- REDIS_PASSWORD=
depends_on:
mongo:
condition: service_healthy
redis:
condition: service_started
restart: unless-stopped
api:
build:
context: .
dockerfile: ./api/Dockerfile
container_name: lead-scoring-api
env_file: .env
environment:
- MONGO_URI=mongodb://mongo:27017/lead-scoring-db
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_TLS=false
- REDIS_PASSWORD=
ports:
- "4000:4000"
depends_on:
mongo:
condition: service_healthy
redis:
condition: service_started
restart: unless-stopped
volumes:
mongo-data: