-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
53 lines (50 loc) · 1.42 KB
/
docker-compose.yaml
File metadata and controls
53 lines (50 loc) · 1.42 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:
mysql-server:
image: mysql:8.2
restart: always
hostname: mysql-server
environment:
MYSQL_DATABASE: 'fleetspeak'
MYSQL_USER: 'fleetspeak-user'
MYSQL_PASSWORD: 'FS_PASSWORD'
MYSQL_ROOT_PASSWORD: 'FS_SQL_PASSWORD'
ports:
- '3306:3306'
expose:
- '3306'
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 5s
retries: 10
fleetspeak-server:
image: ghcr.io/google/fleetspeak:latest
hostname: fleetspeak-frontend
depends_on:
mysql-server:
condition: service_healthy
entrypoint: ["/fleetspeak/bin/server", "-components_config", "/config/fleetspeak-server/components.textproto", "-services_config", "/config/fleetspeak-server/services.textproto", "-alsologtostderr"]
volumes:
- "./config:/config"
ports:
- '9090:9090'
- '9091:9091'
- '8080:8080'
expose:
- '9090'
- '9091'
- '8080'
healthcheck:
test: ["CMD", "curl", "http://localhost:8080"]
timeout: 5s
retries: 10
fleetspeak-client:
build:
context: .
dockerfile: ../shared/fleetspeak-client/Dockerfile
hostname: fleetspeak-client
depends_on:
fleetspeak-server:
condition: service_healthy
entrypoint: ["/fleetspeak/bin/client", "-config", "/config/fleetspeak-client/config.textproto", "-alsologtostderr"]
volumes:
- "./config:/config"