Replies: 1 comment 2 replies
-
Thanks for this, I've replicated your changes to the documented setup, and it finally works for me too. adventurelog:
container_name: adventurelog
image: ghcr.io/seanmorley15/adventurelog-frontend:latest
restart: unless-stopped
depends_on:
- adventurelog-server
networks:
- internal
- reverse_proxy
environment:
PUBLIC_SERVER_URL: "http://${ADVENTURELOG_SERVER_IP}:8000"
ORIGIN: "https://adventurelog.${DOMAINNAME2}"
BODY_SIZE_LIMIT: "100000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.adventurelog-rtr.entrypoints=https"
- "traefik.http.routers.adventurelog-rtr.rule=Host(`adventurelog.${DOMAINNAME2}`) && !(PathPrefix(`/media`) || PathPrefix(`/admin`) || PathPrefix(`/static`) || PathPrefix(`/accounts`))"
- "traefik.http.routers.adventurelog-rtr.middlewares=chain-no-auth@file"
- "traefik.http.routers.adventurelog-rtr.service=adventurelog-svc"
- "traefik.http.services.adventurelog-svc.loadbalancer.server.port=3000"
adventurelog-server:
container_name: adventurelog-server
image: ghcr.io/seanmorley15/adventurelog-backend:latest
restart: unless-stopped
depends_on:
- adventurelog-db
networks:
internal:
ipv4_address: ${ADVENTURELOG_SERVER_IP}
reverse_proxy:
expose:
- 8000
volumes:
- ${DOCKERDIR}/appdata/adventurelog/media:/code/media
environment:
SECRET_KEY: ${ADVENTURELOG_SECRET_KEY}
PUBLIC_URL: "https://adventurelog.${DOMAINNAME2}"
FRONTEND_URL: "https://adventurelog.${DOMAINNAME2}"
CSRF_TRUSTED_ORIGINS: "https://adventurelog.${DOMAINNAME2},http://adventurelog:8000"
DJANGO_ADMIN_EMAIL: ${ADVENTURELOG_ADMIN_MAIL}
DJANGO_ADMIN_USERNAME: ${ADVENTURELOG_ADMIN_USER}
DJANGO_ADMIN_PASSWORD: ${ADVENTURELOG_ADMIN_PASS}
PGHOST: "adventurelog-db"
PGDATABASE: ${ADVENTURELOG_DB_NAME}
PGUSER: ${ADVENTURELOG_DB_USER}
PGPASSWORD: ${ADVENTURELOG_DB_PASS}
DEBUG: "false"
labels:
- "traefik.enable=true"
- "traefik.http.routers.adventurelogserver-rtr.entrypoints=https"
- "traefik.http.routers.adventurelogserver-rtr.rule=Host(`adventurelog.${DOMAINNAME2}`) && (PathPrefix(`/media`) || PathPrefix(`/admin`) || PathPrefix(`/static`) || PathPrefix(`/accounts`))"
- "traefik.http.routers.adventurelogserver-rtr.middlewares=chain-no-auth@file"
- "traefik.http.routers.adventurelogserver-rtr.service=adventurelogserver-svc"
- "traefik.http.services.adventurelogserver-svc.loadbalancer.server.port=8000" |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was getting a lot of errors setting up the stack when using a reverse proxy. Maybe the reverse proxy documentation could be cleared up, but what I found is that the backend needs the following:
and the following for the frontend:
My overall docker-compose file is as follows:
Beta Was this translation helpful? Give feedback.
All reactions