mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
29 lines
558 B
YAML
29 lines
558 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
|
|
yourls:
|
|
image: yourls:1.8
|
|
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
|