infrastructure/ansible/roles/yourls/files/docker-compose.yml
Jake Howard b6a0fdfd1d
Unpin the version of yourls
It's a very simple, non-critical application, which I keep forgetting to update
2021-12-21 21:48:41 +00:00

31 lines
758 B
YAML

version: "2.3"
services:
yourls:
image: yourls:apache
restart: unless-stopped
depends_on:
- mariadb
environment:
- YOURLS_DB_PASS=yourls
- YOURLS_DB_USER=yourls
- YOURLS_DB_HOST=mariadb
- YOURLS_USER=jake
- YOURLS_PASS={{ yourls_password }}
- YOURLS_SITE=https://0rng.one
volumes:
- ./index.html:/var/www/html/index.html:ro
labels:
- traefik.enable=true
- traefik.http.routers.yourls.rule=Host(`0rng.one`)
mariadb:
image: mariadb:10.7
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=yourls
- MYSQL_USER=yourls
- MYSQL_PASSWORD=yourls
volumes:
- /mnt/tank/dbs/mariadb/yourls:/var/lib/mysql
restart: unless-stopped