update example docker compose

This commit is contained in:
maxDorninger
2025-07-01 21:12:36 +02:00
parent 892054c81b
commit d25e4c86b8

View File

@@ -1,20 +1,15 @@
services:
backend:
image: ghcr.io/maxdorninger/mediamanager/backend:latest
container_name: backend
ports:
- "8000:8000"
# In your reverse proxy you will probably need to set rule that only requests with a path prefix
# of /api/v1 will be forwarded to this container
# if you are using traefik the rule is going to look something like this:
# "traefik.http.routers.mm-api.rule=Host(`media.example`)&&PathPrefix(`/api/v1`)"
environment:
- QBITTORRENT_PASSWORD=
- QBITTORRENT_HOST=
- QBITTORRENT_USERNAME=
- QBITTORRENT_PORT=
- CORS_URLS=
- CORS_URLS=["http://localhost:3000","https://mm.example.com"]
- DB_HOST=db
#- DB_NAME=
@@ -22,15 +17,46 @@ services:
#- DB_PASSWORD=
#- DB_DBNAME=
#- PROWLARR_ENABLED=
#- PROWLARR_URL=http://prowlarr:9696
#- PROWLARR_API_KEY=
#- JACKETT_ENABLED=
#- JACKETT_URL=http://jackett:9117
#- JACKETT_API_KEY=
# example indexers, you can also just use ["all"] to use all indexers configured in Jackett
#- JACKETT_INDEXERS=["1337x","Rarbg"]
# generate a random string with "openssl rand -hex 32"
- AUTH_TOKEN_SECRET=
# this should be you email address
- AUTH_ADMIN_EMAIL=
- AUTH_ADMIN_EMAIL=["admin1@example.com","admin2@example.com"]cat
# if you forget your password you can request a link and get it via email, you must have the email settings configured for this to work obviously
#- AUTH_EMAIL_PASSWORD_RESETS=TRUE
# this is the URL of your frontend, e.g. https://mediamanager.example.com
- FRONTEND_URL=
#- EMAIL_SMTP_HOST=
#- EMAIL_SMTP_PORT=
#- EMAIL_SMTP_USER=
#- EMAIL_SMTP_PASSWORD=
#- EMAIL_FROM_EMAIL=
#- EMAIL_USE_TLS=TRUE
#- NOTIFICATION_EMAIL=notify@example.com
#- NOTIFICATION_GOTIFY_API_KEY=
#- NOTIFICATION_GOTIFY_URL=https://gotify.example.com
#- NOTIFICATION_PUSHOVER_API_KEY=
#- NOTIFICATION_PUSHOVER_USER=
#- NOTIFICATION_NTFY_URL=https://ntfy.sh/your-topic
#- OPENID_ENABLED=FALSE
#- OPENID_CLIENT_ID=
#- OPENID_CLIENT_SECRET=
@@ -45,17 +71,13 @@ services:
- ./data/:/data/
frontend:
image: ghcr.io/maxdorninger/mediamanager/frontend:latest
container_name: frontend
ports:
- "3000:3000"
volumes:
- ./cache:/app/cache
environment:
- PUBLIC_API_URL=http://localhost:8000/api/v1
db:
image: postgres:latest
restart: unless-stopped
container_name: postgres
volumes:
- ./postgres:/var/lib/postgresql/data
environment: