32 lines
1.2 KiB
YAML
32 lines
1.2 KiB
YAML
# Portainer stack: deploy pre-built image from Gitea container registry.
|
|
# Used with stack type "Git repository" — compose path: docker-compose.yml
|
|
# Image is built and pushed by Woodpecker; enable "Re-pull image" in Portainer
|
|
# so webhook redeploys pull the new :latest and recreate the stack.
|
|
|
|
services:
|
|
landing:
|
|
image: git.mifi.dev/mifi-ventures/landing:latest
|
|
container_name: mifi-ventures-landing
|
|
pull_policy: always
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1/"]
|
|
interval: 30s
|
|
timeout: 3s
|
|
start_period: 5s
|
|
retries: 3
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=marina-net"
|
|
- "traefik.http.routers.mifiventures.rule=Host(`mifi.ventures`) || Host(`www.mifi.ventures`)"
|
|
- "traefik.http.routers.mifiventures.entrypoints=websecure"
|
|
- "traefik.http.routers.mifiventures.middlewares=secure-all@file,redirect-www-to-non-www@file"
|
|
- "traefik.http.routers.mifiventures.tls=true"
|
|
- "traefik.http.routers.mifiventures.tls.certresolver=letsencrypt"
|
|
networks:
|
|
- marina-net
|
|
|
|
networks:
|
|
marina-net:
|
|
external: true
|