Files
GuestOps/compose.yml
T
2026-10-21 11:55:33 +01:00

61 lines
2.1 KiB
YAML

name: guestops
x-app-env: &app-env
Mongo__ConnectionString: ${MONGO_CONNECTION_STRING:?Set MONGO_CONNECTION_STRING}
Mongo__Database: ${MONGO_DATABASE:-guestops}
Keys__Path: /var/lib/guestops/keys
PublicUrl: ${GUESTOPS_PUBLIC_ORIGIN:?Set GUESTOPS_PUBLIC_ORIGIN}
Google__ClientId: ${GOOGLE_CLIENT_ID:-}
Google__ClientSecret: ${GOOGLE_CLIENT_SECRET:-}
AutoReply__EnableLive: ${AUTO_REPLY_ENABLE_LIVE:-false}
Google__EnableSending: ${GOOGLE_ENABLE_SENDING:-false}
Logging__LogLevel__Default: Warning
Logging__LogLevel__Microsoft.AspNetCore.Hosting.Diagnostics: Warning
x-logging: &logging
driver: json-file
options: { max-size: "10m", max-file: "3" }
services:
api:
image: ${GUESTOPS_API_IMAGE:-guestops-api:local}
build: { context: ., target: api }
restart: unless-stopped
ports: ["127.0.0.1:8080:8080"]
environment:
<<: *app-env
ASPNETCORE_ENVIRONMENT: Production
AllowedHosts: ${GUESTOPS_ALLOWED_HOSTS:?Set GUESTOPS_ALLOWED_HOSTS}
Proxy__KnownAddress: ${GUESTOPS_GATEWAY:-172.30.87.1}
Ai__ApiKey: ${AI_API_KEY:-}
Ai__Model: ${AI_MODEL:-}
Payments__ConfigFile: /run/guestops/payments.json
Pms__ConfigFile: /run/guestops/pms.json
volumes:
- app-keys:/var/lib/guestops/keys
- ${PMS_CONFIG_FILE_HOST:-./deploy/pms.example.json}:/run/guestops/pms.json:ro
- ${PAYMENTS_CONFIG_FILE_HOST:-./deploy/payments.example.json}:/run/guestops/payments.json:ro
labels:
co.elastic.logs/enabled: "true"
service.name: guestops-api
logging: *logging
mem_limit: 1g
security_opt: ["no-new-privileges:true"]
worker:
image: ${GUESTOPS_WORKER_IMAGE:-guestops-worker:local}
build: { context: ., target: worker }
restart: unless-stopped
environment: *app-env
volumes: ["app-keys:/var/lib/guestops/keys"]
labels:
co.elastic.logs/enabled: "true"
service.name: guestops-worker
logging: *logging
mem_limit: 768m
security_opt: ["no-new-privileges:true"]
volumes:
app-keys:
networks:
default:
ipam:
config:
- subnet: ${GUESTOPS_SUBNET:-172.30.87.0/24}
gateway: ${GUESTOPS_GATEWAY:-172.30.87.1}