[+] Caddy

This commit is contained in:
2025-11-25 22:34:46 +08:00
parent 29fc505bf1
commit 91a28b1998
2 changed files with 26 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
:80 {
handle_path /audio/* {
root * /srv/audio
file_server
}
handle {
reverse_proxy web:3000
}
}
+16 -2
View File
@@ -4,8 +4,10 @@ services:
build: build:
context: .. context: ..
dockerfile: deploy/Dockerfile.web dockerfile: deploy/Dockerfile.web
ports: # ports:
- "127.0.0.1:3000:3000" # - "127.0.0.1:3000:3000"
volumes:
- ./data/storage:/app/static
environment: environment:
- ORIGIN=http://localhost:3000 - ORIGIN=http://localhost:3000
- MONGO_URL=mongodb://cat:meow@db:27017/amaoke?authSource=admin - MONGO_URL=mongodb://cat:meow@db:27017/amaoke?authSource=admin
@@ -16,6 +18,18 @@ services:
- ai - ai
restart: unless-stopped restart: unless-stopped
caddy:
image: caddy:alpine
container_name: amaoke-caddy
restart: unless-stopped
ports:
- "127.0.0.1:3000:80"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./data/storage/audio:/srv/audio
depends_on:
- web
ai: ai:
container_name: amaoke-ai container_name: amaoke-ai
build: build: