-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.31 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
services:
schema-monitor:
image: halilibrahimd27/api-sentinel-monitor-develop:${IMAGE_TAG:-latest}
build:
context: ./schema-monitor
dockerfile: Dockerfile
container_name: api-sentinel-monitor
ports:
- "${MONITOR_PORT:-8080}:8080"
volumes:
- schema-data:/app/data
- schema-files:/app/schemas
env_file:
- .env
environment:
- DB_PATH=/app/data/schemas.db
- SCHEMA_DIR=/app/schemas
- SECRET_KEY=${SECRET_KEY:-api-sentinel-default-key-change-me}
networks:
- sentinel-net
healthcheck:
test: ["CMD", "python", "-c", "import httpx; r = httpx.get('http://localhost:8080/health'); r.raise_for_status()"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
restart: unless-stopped
changelog-watcher:
image: halilibrahimd27/api-sentinel-changelog-develop:${IMAGE_TAG:-latest}
build:
context: ./changelog-watcher
dockerfile: Dockerfile
container_name: api-sentinel-changelog
volumes:
- changelog-data:/app/data
env_file:
- .env
networks:
- sentinel-net
depends_on:
schema-monitor:
condition: service_healthy
restart: unless-stopped
volumes:
schema-data:
schema-files:
changelog-data:
networks:
sentinel-net:
driver: bridge