Generated by Spark: GitHub/gitlab/Jenkins/circleci ci cd config

This commit is contained in:
2026-01-16 02:25:22 +00:00
committed by GitHub
parent 7de782ec62
commit c63810bca1
12 changed files with 2034 additions and 3 deletions

26
docker-compose.yml Normal file
View File

@@ -0,0 +1,26 @@
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- '3000:80'
environment:
- NODE_ENV=production
restart: unless-stopped
healthcheck:
test: ['CMD', 'wget', '--quiet', '--tries=1', '--spider', 'http://localhost/health']
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.codeforge.rule=Host(`codeforge.example.com`)'
- 'traefik.http.services.codeforge.loadbalancer.server.port=80'
networks:
default:
name: codeforge-network