-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
36 lines (33 loc) · 929 Bytes
/
docker-compose.yaml
File metadata and controls
36 lines (33 loc) · 929 Bytes
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
# =========================================================
# Adaptive Stealth Network — Docker Compose
# =========================================================
services:
backend:
build: .
container_name: asn-backend
ports:
- "${API_PORT:-8000}:8000"
environment:
- DATABASE_URL=sqlite+aiosqlite:///./data/asn_database.db
- LOG_LEVEL=${LOG_LEVEL:-INFO}
volumes:
- ./data:/app/data
- ./config:/app/config
- ./logs:/app/logs
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:8000/api/health')"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
tunnel:
image: cloudflare/cloudflared:latest
container_name: asn-tunnel
restart: unless-stopped
command: tunnel --url http://asn-backend:8000
depends_on:
- backend
volumes:
data:
logs: