mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-07-27 20:29:10 +00:00
800d47845f
- Updated ComposeService to run docker commands from stack-specific directories, ensuring relative paths resolve correctly. - Refactored FileSystemService to manage stacks as directories, including methods for creating, updating, and deleting stacks. - Implemented automatic migration of existing flat-file stacks to the new directory structure on server startup. - Adjusted API routes to use stack names instead of filenames, simplifying stack management. - Modified frontend components to align with the new stack naming conventions and removed unnecessary file extensions.
24 lines
711 B
YAML
24 lines
711 B
YAML
services:
|
|
sencho:
|
|
image: saelix/sencho:latest
|
|
build: .
|
|
container_name: sencho
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./data:/app/data
|
|
|
|
# Stacks Directory
|
|
# Left Side = Path on your host server (Change this to your actual folder)
|
|
# Right Side = Path inside Sencho (Do NOT change)
|
|
- /path/to/your/docker/compose:/app/compose
|
|
|
|
environment:
|
|
# Tell Sencho's backend where to look inside the container
|
|
- COMPOSE_DIR=/app/compose
|
|
- DATA_DIR=/app/data
|
|
# Generate a secure random string for this in production
|
|
- JWT_SECRET=change-me-in-production
|