2020-06-02 10:40:14 +02:00
|
|
|
version: '3.8'
|
2019-02-12 12:28:09 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
yourls:
|
2021-08-27 08:46:13 +02:00
|
|
|
image: yourls:1.8
|
2019-02-12 12:28:09 +02:00
|
|
|
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
|
2020-06-02 10:40:14 +02:00
|
|
|
restart: unless-stopped
|
2019-02-12 12:28:09 +02:00
|
|
|
|
|
|
|
mysql:
|
|
|
|
image: mysql:5.7
|
|
|
|
volumes:
|
|
|
|
- ./data:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=root
|
|
|
|
- MYSQL_DATABASE=yourls
|
2020-06-02 10:40:14 +02:00
|
|
|
restart: unless-stopped
|