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:
|
||||
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:
|
||||
image: git.sneakygeek.net/sneakygeek/sneakyswole:latest
|
||||
container_name: sneakyswole
|
||||
ports:
|
||||
- "${APP_PORT:-8000}:8000"
|
||||
expose:
|
||||
- "8000"
|
||||
volumes:
|
||||
- sneakyswole-data:/app/data
|
||||
env_file:
|
||||
@@ -19,3 +32,5 @@ services:
|
||||
volumes:
|
||||
sneakyswole-data:
|
||||
driver: local
|
||||
caddy-data:
|
||||
driver: local
|
||||
|
||||
Reference in New Issue
Block a user