feat: add Caddy reverse proxy in front of app
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 11s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 11s
Caddy listens on port 80 and proxies to the app on 8000 internally. App port is no longer exposed to the host directly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,9 +1,22 @@
|
|||||||
services:
|
services:
|
||||||
|
caddy:
|
||||||
|
image: caddy:2-alpine
|
||||||
|
container_name: sneakyswole-proxy
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
volumes:
|
||||||
|
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||||
|
- caddy-data:/data
|
||||||
|
depends_on:
|
||||||
|
app:
|
||||||
|
condition: service_healthy
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: git.sneakygeek.net/sneakygeek/sneakyswole:latest
|
image: git.sneakygeek.net/sneakygeek/sneakyswole:latest
|
||||||
container_name: sneakyswole
|
container_name: sneakyswole
|
||||||
ports:
|
expose:
|
||||||
- "${APP_PORT:-8000}:8000"
|
- "8000"
|
||||||
volumes:
|
volumes:
|
||||||
- sneakyswole-data:/app/data
|
- sneakyswole-data:/app/data
|
||||||
env_file:
|
env_file:
|
||||||
@@ -19,3 +32,5 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
sneakyswole-data:
|
sneakyswole-data:
|
||||||
driver: local
|
driver: local
|
||||||
|
caddy-data:
|
||||||
|
driver: local
|
||||||
|
|||||||
Reference in New Issue
Block a user