mirror of
https://github.com/PAPAMICA/docker-compose-collection.git
synced 2026-01-18 16:27:25 +01:00
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
# Maintainer: Mickael "PAPAMICA" Asseline
|
|
# Update: 2022-05-10
|
|
|
|
|
|
#& type: 3
|
|
#& title: Adminer
|
|
#& description: Management of MySQL
|
|
#& note: Website: <a href='https://www.adminer.org/' target='_blank' rel='noopener'>Adminer.org</a>
|
|
#& categories: SelfHosted, Database, PAPAMICA
|
|
#& platform: linux
|
|
#& logo: https://img.papamica.com/logo/adminer.png
|
|
|
|
#% SERVICE: Name of the service (No spaces or points) [adminer]
|
|
#% URL: Service URL (Example: service.papamica.fr or service.com)
|
|
#% NETWORK: Your Traefik network (Example: proxy) [proxy]
|
|
|
|
# Work with Portainer
|
|
version: "2"
|
|
services:
|
|
adminer:
|
|
image: adminer
|
|
restart: always
|
|
container_name: $SERVICE
|
|
environment:
|
|
- ADMINER_DESIGN='hydra'
|
|
healthcheck:
|
|
test: curl --fail http://localhost:8080 || exit 1
|
|
interval: 1m
|
|
timeout: 30s
|
|
retries: 3
|
|
networks:
|
|
- default
|
|
labels:
|
|
- "autoupdate=monitor" # https://github.com/PAPAMICA/container-updater
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.$SERVICE.rule=Host(`$URL`)"
|
|
- "traefik.http.routers.$SERVICE.tls.certresolver=http"
|
|
- "traefik.http.services.$SERVICE.loadbalancer.server.port=8080"
|
|
- "traefik.docker.network=$NETWORK"
|
|
networks:
|
|
default:
|
|
external:
|
|
name: $NETWORK |