2025-08-13 00:51:44 +01:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
scriptshare:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
2025-08-15 20:40:39 +01:00
|
|
|
args:
|
|
|
|
- VITE_APP_NAME=ScriptShare
|
|
|
|
- VITE_APP_URL=http://localhost:3000
|
|
|
|
- VITE_ANALYTICS_ENABLED=false
|
2025-08-13 00:51:44 +01:00
|
|
|
ports:
|
|
|
|
- "3000:80"
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
|
|
|
restart: unless-stopped
|
2025-08-13 01:37:39 +01:00
|
|
|
volumes:
|
|
|
|
- scriptshare_logs:/var/log/nginx
|
2025-08-13 00:51:44 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost/health"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
|
|
|
start_period: 40s
|
2025-08-15 20:40:39 +01:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.scriptshare.rule=Host(`scriptshare.localhost`)"
|
|
|
|
- "traefik.http.services.scriptshare.loadbalancer.server.port=80"
|
2025-08-13 01:37:39 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
scriptshare_logs:
|
|
|
|
driver: local
|