-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (79 loc) · 2.09 KB
/
docker-compose.yml
File metadata and controls
85 lines (79 loc) · 2.09 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
78
79
80
81
82
83
84
85
version: '3.8'
services:
# MQTT Broker
mqtt:
image: eclipse-mosquitto:2.0
container_name: git-friends-mqtt
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./docker/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./docker/mosquitto/data:/mosquitto/data
- ./docker/mosquitto/log:/mosquitto/log
restart: unless-stopped
networks:
- git-friends-network
# Git Friends Server
git-friends-server:
build: .
container_name: git-friends-server
ports:
- "8080:8080"
volumes:
- ./docker/config/git-friends.toml:/app/config/git-friends.toml:ro
- ./docker/logs:/app/logs
environment:
- RUST_LOG=info
- GIT_FRIENDS_CONFIG=/app/config/git-friends.toml
depends_on:
- mqtt
restart: unless-stopped
networks:
- git-friends-network
command: ["./bin/gf-server", "--bind", "0.0.0.0:8080"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 5s
retries: 3
# Git Friends IRC Client
git-friends-irc:
build: .
container_name: git-friends-irc
volumes:
- ./docker/config/git-friends.toml:/app/config/git-friends.toml:ro
- ./docker/logs:/app/logs
environment:
- RUST_LOG=info
- GIT_FRIENDS_CONFIG=/app/config/git-friends.toml
depends_on:
- mqtt
- git-friends-server
restart: unless-stopped
networks:
- git-friends-network
command: ["./bin/gf-irc"]
# Optional: Git Friends Tester (for development/testing)
git-friends-tester:
build: .
container_name: git-friends-tester
volumes:
- ./docker/config/git-friends.toml:/app/config/git-friends.toml:ro
environment:
- RUST_LOG=info
- GIT_FRIENDS_CONFIG=/app/config/git-friends.toml
depends_on:
- mqtt
- git-friends-server
networks:
- git-friends-network
command: ["./bin/gf-tester", "--continuous", "--interval", "30"]
profiles:
- testing
networks:
git-friends-network:
driver: bridge
volumes:
mosquitto-data:
mosquitto-log: