Kinda forgot about this post. I fixed it by now. I just removed nginx from the compose file. I use caddy anyway, so using another proxy at the same time makes no sense. The problem was that I misunderstood the docs and thought that nginx is required for some reason.
Heres my compose file:
version: "3.3"
services:
peertube:
image: chocobozzz/peertube:production-bullseye
env_file:
- .env
volumes:
- ./docker-volume/data:/data
- ./docker-volume/config:/config
restart: "unless-stopped"
ports:
- "1935:1935"
networks:
- default
- caddy_net
postgres:
image: postgres:10-alpine
env_file:
- .env
volumes:
- ./docker-volume/db:/var/lib/postgresql/data
restart: "unless-stopped"
redis:
image: redis:4-alpine
volumes:
- ./docker-volume/redis:/data
restart: "unless-stopped"
# postfix:
# image: mwader/postfix-relay
# env_file:
# - .env
# volumes:
# - ./docker-volume/opendkim/keys:/etc/opendkim/keys
# labels:
# restart: "unless-stopped"
networks:
default:
ipam:
driver: default
config:
- subnet: 172.20.0.0/16
caddy_net:
external: true