audiomuse: bridge network (not gluetun), fix port conflict with TA

This commit is contained in:
Hermes
2026-05-17 21:11:59 +00:00
parent 7a56bca08b
commit 2a95009adc

View File

@@ -1312,28 +1312,65 @@ playlists for Jellyfin. Runs as Flask app + RQ worker, connects to
existing PostgreSQL and Valkey. Routes through Gluetun VPN. existing PostgreSQL and Valkey. Routes through Gluetun VPN.
#+BEGIN_SRC yaml :tangle /docker/compose/services/audiomuse.yaml #+BEGIN_SRC yaml :tangle /docker/compose/services/audiomuse.yaml
1322| services:
1323|* .env Configuration audiomuse-ai:
1324| image: ghcr.io/neptunehub/audiomuse-ai:latest
1325|The =.env= file at =/docker/compose/.env= holds all variable values. container_name: audiomuse-ai
1326|The =:?err= suffix on every variable ensures missing values fail fast. restart: unless-stopped
1327| networks:
1328|Key variables: - networking
1329|- =DOCKER_SUBNET= and =DOCKER_GATEWAY= define the Docker bridge network ports:
1330|- =CLOUDFLARE_DNS_ZONE= (=gharbeia.net=) is used in all Traefik routes - ${WEBUI_PORT_AUDIOMUSE:-8005}:8000
1331|- =PUID= and =PGID= control file ownership (1000:1000) environment:
1332|- =FOLDER_FOR_MEDIA= and =FOLDER_FOR_MORE= — Media library root paths SERVICE_TYPE: "flask"
1333|- =TUNNEL_TOKEN= is the Cloudflare tunnel auth token (managed externally) TZ: ${TIMEZONE:?err}
1334|- =TA_USERNAME= and =TA_PASSWORD= — Tube Archivist admin credentials POSTGRES_USER: ${POSTGRESQL_USERNAME:?err}
1335| POSTGRES_PASSWORD: ${POSTGRESQL_PASSWORD:?err}
1336|* LOGBOOK POSTGRES_DB: audiomusedb
1337| POSTGRES_HOST: postgresql
1338|** [2026-05-16 Sat 22:45] Tube Archivist installed POSTGRES_PORT: "5432"
1339|- 3-container stack: tubearchivist, ES 8.17, Redis REDIS_URL: redis://valkey:6379/0
1340|- Traefik secureweb/tunnel/internal routers TEMP_DIR: /app/temp_audio
1341|- Static TA_HOST=tubearchivist.gharbeia.net, ELASTIC_PASSWORD=tubearchivist FRONTEND_PORT: "8000"
1342|- REDIS_CON connection string (newer TA uses this instead of REDIS_HOST+REDIS_PORT) volumes:
1343|- ES 8.17 with path_repo and xpack.security.enabled=false - ${FOLDER_FOR_MEDIA:?err}:/library
- ${FOLDER_FOR_MORE:?err}:/more
- temp-audio-flask:/app/temp_audio
labels:
- traefik.enable=true
- traefik.http.routers.audiomuse.service=audiomuse
- traefik.http.routers.audiomuse.rule=Host(`audiomuse.${CLOUDFLARE_DNS_ZONE:?err}`)
- traefik.http.routers.audiomuse.entrypoints=tunnel
- traefik.http.routers.audiomuse.middlewares=authentik-forwardauth@file,security-headers@file,traefik-bouncer@file
- traefik.http.services.audiomuse.loadbalancer.server.scheme=http
- traefik.http.services.audiomuse.loadbalancer.server.port=${WEBUI_PORT_AUDIOMUSE:-8005}
audiomuse-worker:
image: ghcr.io/neptunehub/audiomuse-ai:latest
container_name: audiomuse-worker
restart: unless-stopped
networks:
- networking
environment:
SERVICE_TYPE: "worker"
TZ: ${TIMEZONE:?err}
POSTGRES_USER: ${POSTGRESQL_USERNAME:?err}
POSTGRES_PASSWORD: ${POSTGRESQL_PASSWORD:?err}
POSTGRES_DB: audiomusedb
POSTGRES_HOST: postgresql
POSTGRES_PORT: "5432"
REDIS_URL: redis://valkey:6379/0
TEMP_DIR: /app/temp_audio
volumes:
- ${FOLDER_FOR_MEDIA:?err}:/library
- ${FOLDER_FOR_MORE:?err}:/more
- temp-audio-worker:/app/temp_audio
volumes:
temp-audio-flask:
temp-audio-worker:
#+END_SRC
** [2026-05-17 Sun 17:00] Tube Archivist: gluetun routing, CSRF fix, download path ** [2026-05-17 Sun 17:00] Tube Archivist: gluetun routing, CSRF fix, download path
- TA moved to network_mode: service:gluetun (port 8000 mapped on gluetun) - TA moved to network_mode: service:gluetun (port 8000 mapped on gluetun)