1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/yourls/docker-compose.yml
2022-08-17 16:28:19 +08:00

29 lines
558 B
YAML

version: '3.8'
services:
yourls:
image: yourls:1.9
ports:
- "8080:80"
environment:
- YOURLS_DB_HOST=mysql
- YOURLS_DB_USER=root
- YOURLS_DB_PASS=root
- YOURLS_DB_NAME=yourls
- YOURLS_USER=admin
- YOURLS_PASS=admin
- YOURLS_SITE=https://yourls.easypi.pro
depends_on:
- mysql
restart: unless-stopped
mysql:
image: mysql:5.7
volumes:
- ./data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=yourls
restart: unless-stopped