-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (52 loc) · 1.28 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
version: '3.5'
services:
argus:
build: .
ports:
- "8000:8000"
depends_on:
postgres:
condition: service_healthy
init:
condition: service_completed_successfully
environment:
- TIME_ZONE=Europe/Amsterdam
- DATABASE_URL=postgresql://argus:argus@postgres/argus
- ARGUS_DISABLE_REDIS=True
- POSTGRES_USER=argus
- POSTGRES_PASSWORD=argus
- POSTGRES_DB=argus
volumes:
- ./demo/incidents:/argus/incidents
restart: unless-stopped
init:
build: .
depends_on:
postgres:
condition: service_healthy
command: "python3 /argus/initialize-db.py"
environment:
- TIME_ZONE=Europe/Amsterdam
- DATABASE_URL=postgresql://argus:argus@postgres/argus
- ARGUS_DISABLE_REDIS=True
- PGHOST=postgres
- PGUSER=argus
- PGPASSWORD=argus
- PGDATABASE=argus
volumes:
- ./demo/incidents:/argus/incidents
postgres:
image: "postgres:12"
ports:
- "5433:5432"
restart: unless-stopped
environment:
- POSTGRES_USER=argus
- POSTGRES_PASSWORD=argus
- POSTGRES_DB=argus
healthcheck:
test: ["CMD-SHELL", "pg_isready -U argus -d argus"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s