infrastructure/ansible/roles/intersect-docker/files/yourls/docker-compose.yml

34 lines
841 B
YAML
Raw Normal View History

2020-03-08 18:12:12 +00:00
version: "2.3"
2020-02-07 13:49:13 +00:00
services:
yourls:
2020-04-23 17:31:43 +01:00
image: yourls:1.7.9-apache
2020-02-07 13:49:13 +00:00
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 }}
2020-03-20 22:29:43 +00:00
- YOURLS_SITE=https://0rng.one
volumes:
- ./index.html:/var/www/html/index.html
2020-02-07 13:49:13 +00:00
labels:
- "traefik.enable=true"
2020-04-26 16:33:05 +01:00
- "traefik.http.routers.yourls.rule=Host(`0rng.one`)"
2020-02-07 13:49:13 +00:00
- "traefik.http.routers.yourls.tls=true"
- "traefik.http.routers.yourls.tls.certresolver=le"
mysql:
image: mariadb:10.4
2020-02-07 13:49:13 +00:00
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=yourls
- MYSQL_USER=yourls
- MYSQL_PASSWORD=yourls
volumes:
- ./mariadb:/config
restart: unless-stopped