forked from Greyisheep/apiconf-agent
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (54 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
57 lines (54 loc) · 1.16 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
services:
backend:
build:
context: .
dockerfile: docker/Dockerfile
target: backend
container_name: apiconf-agent-backend
env_file:
- .env
networks:
- apiconf-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/agents/health"]
interval: 20s
timeout: 10s
retries: 3
volumes:
- ./data:/app/data
nginx:
build:
context: .
dockerfile: docker/nginx/Dockerfile
container_name: apiconf-agent-nginx
ports:
- "2025:80"
depends_on:
backend:
condition: service_healthy
networks:
- apiconf-network
restart: unless-stopped
csv-updater:
build:
context: .
dockerfile: docker/Dockerfile
target: csv-updater
container_name: apiconf-csv-updater
volumes:
- ./data:/app/data
- ./logs:/app/logs
environment:
- PYTHONPATH=/app
restart: unless-stopped
healthcheck:
test: ["CMD", "pgrep", "cron"]
interval: 30s
timeout: 10s
retries: 3
networks:
- apiconf-network
networks:
apiconf-network:
driver: bridge