infrastructure/ansible/roles/yourls/files/docker-compose.yml
Renovate ba182c0a26
All checks were successful
/ terraform (push) Successful in 1m15s
/ ansible (push) Successful in 4m1s
Update mariadb Docker tag to v10.11
2023-11-05 22:02:04 +00:00

39 lines
906 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`)
- traefik.http.routers.yourls.tls.certresolver=gandi
networks:
- default
- traefik
mariadb:
image: mariadb:10.11
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=yourls
- MYSQL_USER=yourls
- MYSQL_PASSWORD=yourls
volumes:
- /mnt/speed/dbs/mariadb/yourls:/var/lib/mysql
restart: unless-stopped
networks:
traefik:
external: true