Files
psp_panel/docker-compose.yml
T

73 lines
1.6 KiB
YAML
Raw Normal View History

2026-03-30 13:17:34 +03:30
version: "3.8"
services:
# Production service
app:
2026-04-23 01:22:44 +03:30
platform: ${DOCKER_PLATFORM:-linux/amd64}
2026-03-30 13:17:34 +03:30
build:
context: .
dockerfile: Dockerfile
args:
TENANT: ${TENANT:-tis}
DIST_DIR: ${DIST_DIR:-tis}
2026-04-06 13:31:30 +03:30
container_name: psp_panel_prod
2026-03-30 13:17:34 +03:30
ports:
2026-04-06 13:31:30 +03:30
- "5000:5000"
2026-03-30 13:17:34 +03:30
environment:
- NODE_ENV=production
restart: unless-stopped
healthcheck:
test: [ "CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:5000/" ]
2026-03-30 13:17:34 +03:30
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
networks:
2026-04-06 13:31:30 +03:30
- psp_panel_network
2026-03-30 13:17:34 +03:30
# Staging service
# staging:
# build:
# context: .
# dockerfile: Dockerfile.staging
# container_name: psp_panel_staging
# ports:
# - "5050:5000"
# environment:
# - NODE_ENV=staging
# restart: unless-stopped
# healthcheck:
# test:
# ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
# interval: 30s
# timeout: 3s
# retries: 3
# start_period: 5s
# profiles:
# - staging
# networks:
# - psp_panel_network
2026-03-30 13:17:34 +03:30
# # Development service with hot reload
# dev:
# build:
# context: .
# dockerfile: Dockerfile.dev
# container_name: psp_panel-dev
# working_dir: /app
# volumes:
# - .:/app
# - /app/node_modules
# ports:
# - "4200:4200"
# environment:
# - NODE_ENV=development
# restart: unless-stopped
# profiles:
# - dev
# networks:
# - psp_panel_network
2026-03-30 13:17:34 +03:30
networks:
2026-04-06 13:31:30 +03:30
psp_panel_network:
2026-03-30 13:17:34 +03:30
driver: bridge