infrastructure/ansible/roles/docker/files/yourls/docker-compose.yml
Jake Howard 5027e77534
Have yourls redirect root to admin page
I keep forgetting this is a thing and thinking it's broken
2020-02-07 13:57:03 +00:00

36 lines
986 B
YAML

version: "3"
services:
yourls:
image: yourls:1.7.6-apache
container_name: yourls
restart: unless-stopped
depends_on:
- mysql
environment:
- YOURLS_DB_PASS=yourls
- YOURLS_DB_USER=yourls
- YOURLS_USER=jake
- YOURLS_PASS={{ yourls.user_password }}
- YOURLS_SITE=https://go.theorangeone.net
volumes:
- ./index.html:/var/www/html/index.html
labels:
- "traefik.enable=true"
- "traefik.http.routers.yourls.rule=Host(`go.theorangeone.net`)"
- "traefik.http.routers.yourls.tls=true"
- "traefik.http.routers.yourls.tls.certresolver=le"
mysql:
image: linuxserver/mariadb:110.4.11mariabionic-ls47
environment:
- PUID={{ docker_user.id }}
- PGID={{ docker_user.id }}
- MYSQL_ROOT_PASSWORD=root
- TZ=Europe/London
- MYSQL_DATABASE=yourls
- MYSQL_USER=yourls
- MYSQL_PASSWORD=yourls
volumes:
- ./mariadb:/config
restart: unless-stopped