[+] Caddy
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
:80 {
|
||||||
|
handle_path /audio/* {
|
||||||
|
root * /srv/audio
|
||||||
|
file_server
|
||||||
|
}
|
||||||
|
|
||||||
|
handle {
|
||||||
|
reverse_proxy web:3000
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user