Tweaks and improvements

This commit is contained in:
2026-02-13 14:50:12 -03:00
parent 1a1f068301
commit db75809bd0
11 changed files with 284 additions and 113 deletions

View File

@@ -1,34 +1,24 @@
services:
service:
image: git.mifi.dev/...:${IMAGE_TAG:-latest}
container_name: service
environment:
- ENV_NAME=value
healthcheck:
test:
[
'CMD',
'/usr/local/bin/healthcheck.sh',
'--connect',
'--innodb_initialized'
]
retries: 10
start_period: 20s
mifi-holdings-landing:
image: git.mifi.dev/mifi-holdings/landing:latest
container_name: mifi-holdings-landing
networks:
- network
volumes:
- volume:/var/lib/...
- other_volume:/var/lib/...
depends_on:
- other service
restart: unless-stopped
- marina-net
labels:
- 'traefik.enable=true'
- 'traefik.docker.network=marina-net'
- 'traefik.http.routers.holdings-landing.rule=Host(`mifi.holdings`) || Host(`www.mifi.holdings`)'
- 'traefik.http.routers.holdings-landing.entrypoints=websecure'
- 'traefik.http.routers.holdings-landing.middlewares=ecurity-supermax-with-analytics@@file,redirect-www-to-non-www@file'
- 'traefik.http.routers.holdings-landing.tls=true'
- 'traefik.http.routers.holdings-landing.tls.certresolver=letsencrypt'
- 'traefik.http.services.holdings-landing.loadbalancer.server.port=80'
healthcheck:
test: ['CMD-SHELL', 'wget --spider -q http://localhost/ || exit 1']
interval: 20s
timeout: 3s
retries: 3
networks:
network:
marina-net:
external: true
volumes:
volume:
external: true
other_volume:
external: false