-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (36 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
36 lines (36 loc) · 1.05 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
services:
irc:
build:
context: ./
dockerfile: tools/Dockerfile.ergo
environment:
# Same reachability hint as cossacks; Ergo entrypoint uses it if ERGO__* are absent.
HOST_NAME: ${HOST_NAME:-cossacks-irc}
# Ergo docs: allow-environment-overrides + JSON for each key (default.yaml ships overrides enabled).
ERGO__NETWORK__NAME: "\"${HOST_NAME:-cossacks-irc}\""
ERGO__SERVER__NAME: "\"${HOST_NAME:-cossacks-irc}\""
ports:
- "6667:6667"
cossacks:
build:
context: ./
dockerfile: tools/Dockerfile.cossacks
environment:
- HOST_NAME=${HOST_NAME:-cossacks-irc}
- UDP_KEEP_ALIVE_INTERVAL=${UDP_KEEP_ALIVE_INTERVAL}
- METRICS_ADDR=:9100
volumes:
- "./logs:/app/logs"
- "./templates:/app/templates"
ports:
- "34001:34001"
- "3708:3708/udp"
- "9100:9100"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:9100/readyz"]
interval: 10s
timeout: 3s
retries: 3
start_period: 15s
depends_on:
- irc