-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.03 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
services:
hub:
build: .
image: ghcr.io/romancha/salmon-hub:latest
restart: unless-stopped
environment:
SALMON_HUB_HOST: "0.0.0.0"
SALMON_HUB_DB_PATH: /data/hub.db
SALMON_HUB_ATTACHMENTS_DIR: /data/attachments
SALMON_HUB_CONSUMER_TOKENS: ocw:asd1
SALMON_HUB_BRIDGE_TOKEN: asd2
volumes:
- hub-data:/data
expose:
- "7433"
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:7433/healthz"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
mem_limit: 256m
networks:
- internal
caddy:
image: caddy:2-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./deploy/Caddyfile.docker:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
depends_on:
hub:
condition: service_healthy
networks:
- internal
volumes:
hub-data:
caddy-data:
caddy-config:
networks:
internal:
driver: bridge