sync: migrate erp-mvp to Gitea (2026-08-10)
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
name: erp-mvp
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: erp-postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB:-erp_mvp}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-erp_user}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-erp_password}
|
||||
volumes:
|
||||
- erp_postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-erp_user} -d ${POSTGRES_DB:-erp_mvp}"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
networks:
|
||||
- erp_internal
|
||||
|
||||
backend:
|
||||
build:
|
||||
context: ./backend
|
||||
container_name: erp-backend
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/${POSTGRES_DB:-erp_mvp}
|
||||
SPRING_DATASOURCE_USERNAME: ${POSTGRES_USER:-erp_user}
|
||||
SPRING_DATASOURCE_PASSWORD: ${POSTGRES_PASSWORD:-erp_password}
|
||||
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS:-https://erp.konturai.kz,http://localhost:5173}
|
||||
JWT_SECRET: ${JWT_SECRET:-dev-secret-change-me-dev-secret-change-me}
|
||||
ADMIN_EMAIL: ${ADMIN_EMAIL:-admin@erp.local}
|
||||
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-admin12345}
|
||||
DEMO_DATA_ENABLED: ${DEMO_DATA_ENABLED:-true}
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
erp_internal:
|
||||
common_network:
|
||||
aliases:
|
||||
- erp-backend
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile.server
|
||||
args:
|
||||
VITE_API_BASE_URL: ${VITE_API_BASE_URL:-https://erp.konturai.kz}
|
||||
container_name: erp-frontend
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- backend
|
||||
networks:
|
||||
common_network:
|
||||
aliases:
|
||||
- erp-frontend
|
||||
|
||||
volumes:
|
||||
erp_postgres_data:
|
||||
|
||||
networks:
|
||||
erp_internal:
|
||||
common_network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user