-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (73 loc) · 1.65 KB
/
docker-compose.yml
File metadata and controls
77 lines (73 loc) · 1.65 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
database:
image: mysql:9.6
env_file: .env
volumes:
- database:/var/lib/mysql
cap_add:
- SYS_NICE
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -u$$MYSQL_USER -p$$MYSQL_PASSWORD --silent || exit 1"]
interval: 10s
timeout: 5s
retries: 12
networks:
- fleet
restart: unless-stopped
kv:
image: valkey/valkey:9-alpine
command: ["valkey-server", "--appendonly", "yes"]
networks:
- fleet
restart: unless-stopped
volumes:
- kv:/data
healthcheck:
test: ["CMD-SHELL", "valkey-cli ping | grep PONG"]
interval: 10s
timeout: 5s
retries: 12
fleet-init:
image: alpine:3.23
volumes:
- logs:/logs
- data:/fleet
- vulndb:/vulndb
command: sh -c "chown -R 100:101 /logs /fleet /vulndb"
fleet:
image: ghcr.io/thundersquared/fleet:4.80.1
depends_on:
database:
condition: service_healthy
kv:
condition: service_healthy
fleet-init:
condition: service_completed_successfully
command: sh -c "/usr/bin/fleet prepare db --no-prompt && /usr/bin/fleet serve"
ports:
- "127.0.0.1:3002:${FLEET_SERVER_PORT}"
env_file: .env
volumes:
- logs:/logs
- data:/fleet
- vulndb:/vulndb
networks:
- app-infra
- fleet
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:${FLEET_SERVER_PORT}/healthz"]
interval: 10s
timeout: 5s
retries: 12
restart: unless-stopped
volumes:
database:
logs:
data:
vulndb:
kv:
networks:
app-infra:
external: true
fleet:
driver: bridge