[GUIDE] Standalone (including db)
Run Stellaris Cloud in a single container using docker compose
This configuration combines a postgres database, the main backend and a core worker instance running in a separate thread. It's useful for demonstration and ephemeral use cases.
Create stellariscloud.standalone.yml
with this content
services:
app:
image: ghcr.io/stellariscloud/stellariscloud-standalone:latest
container_name: stellariscloud-standalone-demo-app
environment:
APP_HOST_ID: http://stellarisclouddemo.localhost
INITIAL_USER: demo
AUTH_JWT_SECRET: 00000000000000000000000000000000
DB_NAME: stellariscloud_demo_db
DB_USER: stellariscloud_demo_user
DB_PASSWORD: demodemodemodemodemodemo
ROOT_DOMAIN: stellarisclouddemo.localhost
LOG_LEVEL: debug
INIT_EVENT_JOBS: true
INSTALL_APPS_ON_START: true
CREATE_DATABASE: true
RUN_MIGRATIONS: true
APPS_LOCAL_PATH: /usr/src/app/apps
DISABLE_EMBEDDED_CORE_APP_WORKER: false
PRINT_CORE_PROCESS_WORKER_OUTPUT: true
ports:
- 8090:80
- 5432:5432
Run (up) the compose file
docker compose -f stellariscloud.standalone.yml up