infrastructure/ansible/roles/yourls/files/docker-compose.yml
Jake Howard acfd2af7eb
All checks were successful
/ terraform (push) Successful in 37s
/ ansible (push) Successful in 1m28s
Use Gandi as cert provider for traefik
2024-09-14 22:06:42 +01:00

36 lines
831 B
YAML

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`)
networks:
- default
- traefik
mariadb:
image: mariadb:10.10
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