Files
gun-manager/docker-compose.yml
Ron Rise d3059d3481
All checks were successful
🏗️✨ Build Workflow / 🖥️ 🔨 Build (push) Successful in 17m16s
update Docker Hub credentials and image version in configuration files
2025-07-29 16:08:51 -04:00

37 lines
1.1 KiB
YAML

services:
traefik:
image: traefik:latest
container_name: traefik
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
restart: always
command:
- "--providers.docker=true"
- "--providers.docker.exposedByDefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.web-secure.address=:443"
- "--accesslog=true"
- "--entrypoints.web.http.redirections.entryPoint.to=web-secure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
- "--entrypoints.web.http.redirections.entrypoint.permanent=true"
api:
image: scr.siteworxpro.com/gun-manager:v1.0.0
container_name: gun-manager
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.entrypoints=web-secure"
- "traefik.http.routers.api.rule=Host(`localhost`) || Host(`127.0.0.1`)"
- "traefik.http.routers.api.tls=true"
- "traefik.http.services.api.loadbalancer.server.port=8000"
volumes:
- ./data:/app/data
command:
- "-database"
- "./data/gun_inventory.sqlite"
environment:
CORS_ORIGINS: "https://localhost"