-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (37 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
42 lines (37 loc) · 1.07 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
version: '3.8'
services:
db:
image: postgres:13
environment:
POSTGRES_USER: postgres # PostgreSQL user
POSTGRES_PASSWORD: postgres # Password for user
POSTGRES_DB: omnivise # Database name
ports:
- "5432:5432" # Expose port for local access
redis:
image: redis:alpine
ports:
- "6379:6379" # Redis port
ingestor:
build:
context: ./Dockerfiles
dockerfile: ingestor.Dockerfile
ports:
- "5001:5001" # Expose ingest API port
depends_on:
- db # Start after db is ready
- redis # Start after redis is ready
api:
build:
context: ./Dockerfiles
dockerfile: api.Dockerfile
ports:
- "8000:8000" # Expose API port
depends_on:
- db # Depends on DB being ready
alert:
build:
context: ./Dockerfiles
dockerfile: alert.Dockerfile
depends_on:
- redis # Depends on Redis to receive alerts