Files
ssh-manager/docker/docker-compose.yml

26 lines
829 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 单容器运行:前端已打包进 JAR由 Spring Boot 统一提供静态资源与 API
# 构建:在项目根目录执行 docker compose -f docker/docker-compose.yml build
# 运行docker compose -f docker/docker-compose.yml up -d
services:
app:
build:
context: ..
dockerfile: docker/Dockerfile
image: ssh-manager:latest
container_name: ssh-manager
ports:
- "48080:48080"
environment:
- TZ=Asia/Shanghai
# JWT Secret (change in production!)
- SSHMANAGER_JWT_SECRET=ssh-manager-prod-jwt-secret-20240311
# Encryption Key (base64, 32 bytes; change in production!)
- SSHMANAGER_ENCRYPTION_KEY=MLVt7pE35KULIppEiit0doUMvSjozZJ037oNGeXjhVA=
volumes:
- app-data:/app/data
restart: unless-stopped
volumes:
app-data: