tron/docker-compose.yml

57 lines
1.3 KiB
YAML

# ============================================
# TRON Parity Ladder — Production Docker Compose
# ============================================
# Usage:
# docker compose up --build -d
# docker compose logs -f
# docker compose down
# ============================================
version: "3.9"
services:
# ------------------------------------------
# Web — Serves the TRON Parity Ladder SPA
# ------------------------------------------
web:
build:
context: .
dockerfile: Dockerfile
target: production
image: tron-parity-ladder:latest
container_name: tron-parity-ladder
restart: unless-stopped
expose:
- "80"
environment:
- NODE_ENV=production
- TZ=UTC
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:80/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- parity-net
- fullstack_degelas_proxy
deploy:
resources:
limits:
cpus: "1.0"
memory: 256M
reservations:
cpus: "0.25"
memory: 64M
networks:
parity-net:
driver: bridge
fullstack_degelas_proxy:
external: true