2021-01-22 21:29:27 +00:00
|
|
|
version: "2.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
yourls:
|
2021-12-21 21:48:41 +00:00
|
|
|
image: yourls:apache
|
2021-01-22 21:29:27 +00:00
|
|
|
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:
|
2021-01-29 21:52:22 +00:00
|
|
|
- ./index.html:/var/www/html/index.html:ro
|
2021-01-22 21:29:27 +00:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.yourls.rule=Host(`0rng.one`)
|
2022-01-15 23:44:06 +00:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- traefik
|
2021-01-22 21:29:27 +00:00
|
|
|
|
|
|
|
mariadb:
|
2022-12-13 09:13:18 +00:00
|
|
|
image: mariadb:10.10
|
2021-01-22 21:29:27 +00:00
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=root
|
|
|
|
- MYSQL_DATABASE=yourls
|
|
|
|
- MYSQL_USER=yourls
|
|
|
|
- MYSQL_PASSWORD=yourls
|
|
|
|
volumes:
|
2021-07-17 20:32:26 +01:00
|
|
|
- /mnt/tank/dbs/mariadb/yourls:/var/lib/mysql
|
2021-01-22 21:29:27 +00:00
|
|
|
restart: unless-stopped
|
2022-01-15 23:44:06 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
external: true
|