fix: correct soju config path and simplify template
- Fix config path to /soju-config (not /etc/soju/config) - Remove unix+admin listener (causes bind error) - Remove health checks (nc/wget not available in containers) - Simplify depends_on configuration Tested locally with docker compose - both services start successfully
This commit is contained in:
parent
d6c5265556
commit
139db09fe0
1 changed files with 2 additions and 15 deletions
|
|
@ -13,37 +13,24 @@ services:
|
||||||
- soju-uploads:/uploads
|
- soju-uploads:/uploads
|
||||||
- type: bind
|
- type: bind
|
||||||
source: ./soju/config
|
source: ./soju/config
|
||||||
target: /etc/soju/config
|
target: /soju-config
|
||||||
content: |
|
content: |
|
||||||
db sqlite3 /db/main.db
|
db sqlite3 /db/main.db
|
||||||
message-store db
|
message-store db
|
||||||
file-upload fs /uploads/
|
file-upload fs /uploads/
|
||||||
listen irc+insecure://0.0.0.0:6667
|
listen irc+insecure://0.0.0.0:6667
|
||||||
listen ws+insecure://0.0.0.0:80
|
listen ws+insecure://0.0.0.0:80
|
||||||
listen unix+admin:///run/soju/admin
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
aliases:
|
aliases:
|
||||||
- gamja-backend
|
- gamja-backend
|
||||||
healthcheck:
|
|
||||||
test: ["CMD-SHELL", "nc -z localhost 6667 || exit 1"]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 5
|
|
||||||
|
|
||||||
gamja:
|
gamja:
|
||||||
image: codeberg.org/emersion/gamja:latest
|
image: codeberg.org/emersion/gamja:latest
|
||||||
environment:
|
environment:
|
||||||
- SERVICE_FQDN_GAMJA_80
|
- SERVICE_FQDN_GAMJA_80
|
||||||
- GAMJA_SERVER=ws://soju:80
|
|
||||||
depends_on:
|
depends_on:
|
||||||
soju:
|
- soju
|
||||||
condition: service_healthy
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:80 || exit 1"]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 5
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
soju-db:
|
soju-db:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue