Refactor docker-compose files
This commit is contained in:
35
yourls/docker-compose.yml
Normal file
35
yourls/docker-compose.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
yourls:
|
||||
image: registry.karaolidis.com/nikas36/yourls-plugins
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- 'YOURLS_DB_HOST=db:3306'
|
||||
- 'YOURLS_DB_USER=yourls'
|
||||
- 'YOURLS_DB_PASS=yourls'
|
||||
- 'YOURLS_SITE=${YOURLS_URL}'
|
||||
- 'YOURLS_USER=${YOURLS_USER}'
|
||||
- 'YOURLS_PASS=${YOURLS_PASS}'
|
||||
networks:
|
||||
- default
|
||||
- routing
|
||||
depends_on:
|
||||
- yourls-db
|
||||
|
||||
db:
|
||||
image: mysql
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- '/home/nick/configs/yourls:/var/lib/mysql'
|
||||
environment:
|
||||
- 'MYSQL_RANDOM_ROOT_PASSWORD=yes'
|
||||
- 'MYSQL_USER=yourls'
|
||||
- 'MYSQL_PASSWORD=yourls'
|
||||
- 'MYSQL_DATABASE=yourls'
|
||||
user: '1000:1000'
|
||||
|
||||
networks:
|
||||
routing:
|
||||
external: true
|
||||
name: routing
|
Reference in New Issue
Block a user