Add Platform container deployment

This commit is contained in:
2026-08-15 20:32:44 +03:00
parent adff766f87
commit cda86ded5f
4 changed files with 121 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
services:
platform-backend:
build:
context: ..
dockerfile: deploy/platform-backend.Dockerfile
restart: unless-stopped
environment:
APP_NAME: Platform
APP_VERSION: 1.0.0
APP_DEBUG: "false"
APP_CORS_ORIGINS: "http://192.168.1.35"
DATABASE_URL: "sqlite:////data/platform.db"
JWT_SECRET_KEY: "CHANGE_ME_PLATFORM_JWT_SECRET"
JWT_ALGORITHM: "HS256"
JWT_ACCESS_TOKEN_EXPIRE_MINUTES: "480"
volumes:
- platform_data:/data
expose:
- "8000"
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/api/v1/health')"
]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
platform-frontend:
build:
context: ..
dockerfile: deploy/platform-frontend.Dockerfile
restart: unless-stopped
depends_on:
platform-backend:
condition: service_healthy
ports:
- "80:80"
volumes:
platform_data: