Postgres, Zitadel, SeaweedFS, RabbitMQ and Jaeger no longer run as part of this stack. They're shared services (used by Musify, Ping and docker-manager) that now live in a separate Infrastructure repository and must already be running. deploy/compose.yml keeps only what's specific to Musify: its own database connection, its own OIDC app and storage bucket (created against the shared Zitadel/SeaweedFS via zitadel-init/seaweedfs-init), and the application containers. A new wait-for-postgres one-shot replaces the in-file Postgres health check, which no longer works now that Postgres lives in a different compose project. compose.prod.yml joins Infrastructure's infra-net network instead of running its own copies. Docs and READMEs updated to match.
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
name: musify-dev
|
|
|
|
# Development overlay: publishes Musify's own ports to the host so the .NET
|
|
# apps and the web player can run from the IDE.
|
|
#
|
|
# docker compose -f deploy/compose.yml -f deploy/compose.dev.yml up -d
|
|
# docker compose -f deploy/compose.yml -f deploy/compose.dev.yml --profile apps up -d --build
|
|
#
|
|
# Postgres/Zitadel/SeaweedFS/RabbitMQ/Jaeger ports come from Infrastructure's
|
|
# own compose.dev.yml, not from here. See ../../../Infrastructure/README.md.
|
|
# `host.docker.internal` resolves to the same address from the browser, from
|
|
# apps on the host and from inside these containers, which is what makes the
|
|
# OIDC issuer and the presigned S3 URLs valid in both run modes. `extra_hosts`
|
|
# gives Linux containers that same name.
|
|
|
|
x-host-alias: &host-alias
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
services:
|
|
wait-for-postgres:
|
|
extra_hosts: *host-alias
|
|
|
|
seaweedfs-init:
|
|
extra_hosts: *host-alias
|
|
|
|
# zitadel-init (compose.yml) edits whichever env file is mounted here.
|
|
zitadel-init:
|
|
extra_hosts: *host-alias
|
|
volumes:
|
|
- ./.env:/workspace/.env
|
|
|
|
migrate:
|
|
extra_hosts: *host-alias
|
|
|
|
api:
|
|
ports:
|
|
- "5111:5111"
|
|
extra_hosts: *host-alias
|
|
|
|
worker:
|
|
extra_hosts: *host-alias
|
|
|
|
gateway:
|
|
ports:
|
|
- "8081:8081"
|
|
extra_hosts: *host-alias
|
|
|
|
web-player:
|
|
ports:
|
|
- "3000:3000"
|
|
extra_hosts: *host-alias
|