mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
feat: Add extensive collection of application blueprints with Docker Compose configurations
This commit is contained in:
41
blueprints/yourls/docker-compose.yml
Normal file
41
blueprints/yourls/docker-compose.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
yourls-app:
|
||||
image: yourls:1.9.2
|
||||
|
||||
environment:
|
||||
YOURLS_SITE: https://${YOURLS_HOST}
|
||||
YOURLS_USER: ${YOURLS_ADMIN_USER}
|
||||
YOURLS_PASS: ${YOURLS_ADMIN_PASSWORD}
|
||||
YOURLS_DB_HOST: yourls-mysql
|
||||
YOURLS_DB_USER: yourls
|
||||
YOURLS_DB_PASS: ${MYSQL_PASSWORD}
|
||||
YOURLS_DB_NAME: yourls
|
||||
volumes:
|
||||
- yourls-data:/var/www/html
|
||||
depends_on:
|
||||
yourls-mysql:
|
||||
condition: service_healthy
|
||||
restart: always
|
||||
|
||||
yourls-mysql:
|
||||
image: mysql:5.7
|
||||
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
MYSQL_DATABASE: yourls
|
||||
MYSQL_USER: yourls
|
||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||
volumes:
|
||||
- yourls-mysql-data:/var/lib/mysql
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u$$MYSQL_USER", "-p$$MYSQL_PASSWORD"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
yourls-data:
|
||||
yourls-mysql-data:
|
||||
20
blueprints/yourls/template.yml
Normal file
20
blueprints/yourls/template.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
variables:
|
||||
main_domain: ${randomDomain}
|
||||
mysql_password: ${password}
|
||||
mysql_root_password: ${password}
|
||||
admin_password: ${password}
|
||||
|
||||
config:
|
||||
domains:
|
||||
- serviceName: yourls-app
|
||||
port: 80
|
||||
host: ${main_domain}
|
||||
|
||||
env:
|
||||
YOURLS_HOST: ${main_domain}
|
||||
YOURLS_ADMIN_USER: "admin"
|
||||
YOURLS_ADMIN_PASSWORD: ${admin_password}
|
||||
MYSQL_PASSWORD: ${mysql_password}
|
||||
MYSQL_ROOT_PASSWORD: ${mysql_root_password}
|
||||
|
||||
mounts: []
|
||||
1
blueprints/yourls/yourls.svg
Normal file
1
blueprints/yourls/yourls.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user