mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-08 21:14:47 +09:00
Introduces new API endpoints and services for backups, monitoring, and Git deployment. Adds security middleware, account lockout on failed logins, and improves domain/SSL management. Updates Dockerfiles, deployment configs, and frontend to support new features and UI components.
75 lines
1.5 KiB
YAML
75 lines
1.5 KiB
YAML
# Docker Compose - Production Configuration
|
|
version: '3.8'
|
|
|
|
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
container_name: serverkit-backend
|
|
environment:
|
|
- FLASK_ENV=production
|
|
- DATABASE_URL=${DATABASE_URL:-sqlite:///serverkit.db}
|
|
- SECRET_KEY=${SECRET_KEY}
|
|
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
|
|
- CORS_ORIGINS=${CORS_ORIGINS:-https://yourdomain.com}
|
|
volumes:
|
|
- backend-data:/app/instance
|
|
- /var/log:/var/log:ro
|
|
- /home:/home:ro
|
|
- /opt:/opt:ro
|
|
networks:
|
|
- serverkit-network
|
|
restart: always
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
container_name: serverkit-frontend
|
|
depends_on:
|
|
- backend
|
|
networks:
|
|
- serverkit-network
|
|
restart: always
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
container_name: serverkit-nginx
|
|
depends_on:
|
|
- frontend
|
|
- backend
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
- ./nginx/ssl:/etc/nginx/ssl:ro
|
|
- nginx-cache:/var/cache/nginx
|
|
networks:
|
|
- serverkit-network
|
|
restart: always
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
networks:
|
|
serverkit-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
backend-data:
|
|
nginx-cache:
|