GuestOps asible playbook

This commit is contained in:
2026-10-21 11:55:33 +01:00
parent c5c6ec1453
commit db8422afda
61 changed files with 108 additions and 4417 deletions
+10 -27
View File
@@ -1,9 +1,9 @@
name: guestops
x-app-env: &app-env
Mongo__ConnectionString: mongodb://guestops:${MONGO_APP_PASSWORD:?Set MONGO_APP_PASSWORD}@mongo:27017/guestops?authSource=guestops
Mongo__Database: guestops
Mongo__ConnectionString: ${MONGO_CONNECTION_STRING:?Set MONGO_CONNECTION_STRING}
Mongo__Database: ${MONGO_DATABASE:-guestops}
Keys__Path: /var/lib/guestops/keys
PublicUrl: https://sandbox-guestops.futuresens.co.uk
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}
@@ -22,7 +22,7 @@ services:
environment:
<<: *app-env
ASPNETCORE_ENVIRONMENT: Production
AllowedHosts: sandbox-guestops.futuresens.co.uk;localhost;127.0.0.1
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:-}
@@ -32,8 +32,9 @@ services:
- 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
depends_on:
mongo: { condition: service_healthy }
labels:
co.elastic.logs/enabled: "true"
service.name: guestops-api
logging: *logging
mem_limit: 1g
security_opt: ["no-new-privileges:true"]
@@ -43,31 +44,13 @@ services:
restart: unless-stopped
environment: *app-env
volumes: ["app-keys:/var/lib/guestops/keys"]
depends_on:
mongo: { condition: service_healthy }
labels:
co.elastic.logs/enabled: "true"
service.name: guestops-worker
logging: *logging
mem_limit: 768m
security_opt: ["no-new-privileges:true"]
mongo:
image: mongo:8.0
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PASSWORD:?Set MONGO_ROOT_PASSWORD}
MONGO_APP_PASSWORD: ${MONGO_APP_PASSWORD:?Set MONGO_APP_PASSWORD}
volumes:
- mongo-data:/data/db
- ./deploy/mongo-init.js:/docker-entrypoint-initdb.d/guestops.js:ro
command: ["mongod", "--wiredTigerCacheSizeGB", "1"]
healthcheck:
test: ["CMD-SHELL", "mongosh --quiet --eval 'db.adminCommand({ping:1}).ok' | grep 1"]
interval: 10s
timeout: 5s
retries: 12
logging: *logging
mem_limit: 2500m
volumes:
mongo-data:
app-keys:
networks:
default: