Modified compose setup

This commit is contained in:
Simon Einzinger 2024-12-24 10:04:56 +01:00
parent c1322fdf61
commit 53b486514f
3 changed files with 23 additions and 11 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.override.yaml

22
compose.yaml Normal file
View file

@ -0,0 +1,22 @@
name: uni-notes
services:
uni-notes:
build:
dockerfile: Dockerfile
labels:
- "traefik.enable=true"
- "traefik.http.routers.uni-notes.rule=Host(`uni-notes.simon-einzinger.de`)"
- "traefik.http.routers.uni-notes.entrypoints=websecure"
- "traefik.http.routers.uni-notes.tls.certresolver=resolver"
networks:
- proxy
ports:
- "127.0.0.1:7400:80"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
restart: unless-stopped
networks:
proxy:
external: true

View file

@ -1,11 +0,0 @@
name: uni-notes
services:
uni-notes:
build:
dockerfile: Dockerfile
ports:
- "7400:80"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
restart: unless-stopped