Wire it all up...
This commit is contained in:
@@ -1,34 +1,25 @@
|
||||
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
|
||||
networks:
|
||||
- network
|
||||
volumes:
|
||||
- volume:/var/lib/...
|
||||
- other_volume:/var/lib/...
|
||||
depends_on:
|
||||
- other service
|
||||
mail-landing:
|
||||
image: git.mifi.dev/mifi-holdings/mail-landing:latest
|
||||
container_name: mifi-mail-landing
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- marina-net
|
||||
labels:
|
||||
- 'traefik.enable=true'
|
||||
- 'traefik.docker.network=marina-net'
|
||||
- 'traefik.http.routers.mail-landing.rule=Host(`mail.mifi.holdings`)'
|
||||
- 'traefik.http.routers.mail-landing.entrypoints=websecure'
|
||||
- 'traefik.http.routers.mail-landing.middlewares=gzip@file,security-supermax-with-analytics@file'
|
||||
- 'traefik.http.routers.mail-landing.tls=true'
|
||||
- 'traefik.http.routers.mail-landing.tls.certresolver=letsencrypt'
|
||||
- 'traefik.http.services.mail-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
|
||||
Reference in New Issue
Block a user