30 lines
963 B
YAML
30 lines
963 B
YAML
services:
|
|
api:
|
|
image: git.golife.love/chrischen/rolac-api:${TAG:-latest}
|
|
env_file: .env
|
|
environment:
|
|
ASPNETCORE_ENVIRONMENT: Production
|
|
ConnectionStrings__DefaultConnection: ${DB_CONNECTION}
|
|
Jwt__SecretKey: ${JWT_SECRET}
|
|
# Same-origin /api means CORS is not triggered by the browser; this is only
|
|
# a safety net for direct cross-origin calls / tools. Set to your NAS URL.
|
|
Cors__AllowedOrigins__0: ${APP_ORIGIN:-http://localhost:8080}
|
|
volumes:
|
|
- ./data/api-storage:/app/App_Data/storage
|
|
restart: unless-stopped
|
|
expose: ["8080"]
|
|
|
|
app:
|
|
image: git.golife.love/chrischen/rolac-app:${TAG:-latest}
|
|
restart: unless-stopped
|
|
expose: ["80"]
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
# DSM already uses 80/443, so the edge is published on 8080 (HTTP, LAN only).
|
|
ports: ["8080:80"]
|
|
volumes:
|
|
- ./nginx/conf.d:/etc/nginx/conf.d:ro
|
|
depends_on: [api, app]
|
|
restart: unless-stopped
|