Merge pull request 'fusiondance' (#2) from fusiondance into main

Reviewed-on: #2
This commit is contained in:
neurobomber 2024-07-18 15:45:45 -04:00
commit 1d5bdcc126
12 changed files with 162 additions and 39 deletions

View File

@ -23,6 +23,8 @@ services:
privileged: true
environment:
- VIRTUAL_HOST=dash.${DOMAIN}
- LETSENCRYPT_HOST=dash.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
- DASHDOT_ENABLE_CPU_TEMPS=true
- DASHDOT_FS_DEVICE_FILTER=sda,sdb,sdc,sdd,sde,sdf
- DASHDOT_FS_VIRTUAL_MOUNTS=tank/storage/media, psb29404@psb29404.seedbox.io:/files

View File

@ -1,2 +0,0 @@
backup/*
wordpress/*

View File

@ -1,37 +0,0 @@
services:
db:
image: mysql:8.0
restart: always
environment:
MYSQL_DATABASE: fusiondance
MYSQL_USER: wordpress
MYSQL_PASSWORD: ${DBPASS}
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- db:/var/lib/mysql
wordpress:
depends_on:
- db
image: wordpress
restart: always
environment:
# PUID: ${UID}
# PGID: ${GID}
WORDPRESS_DB_HOST: fusiondance-db-1
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: ${DBPASS}
WORDPRESS_DB_NAME: fusiondance
VIRTUAL_HOST: "www.libertyfusiondance.com, libertyfusiondance.com"
LETSENCRYPT_HOST: "libertyfusiondance.com, www.libertyfusiondance.com"
LETSENCRYPT_EMAIL: ${EMAIL}
# LETSENCRYPT_TEST: true
volumes:
- ./wordpress:/var/www/html
- ./backup:/var/www/html/wp-content/updraft
volumes:
wordpress:
db:
networks:
default:
name: nginx-proxy
external: true

View File

@ -0,0 +1,5 @@
DOMAIN=example.com
DBPASS=password
EMAIL=example@mail.com
DOMAIN=example.com

3
ghost-fusiondance/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
db/*
content/*
config.*.json

View File

@ -0,0 +1,31 @@
{
"url": "http://localhost:2368",
"server": {
"port": 2368,
"host": "::"
},
"mail": {
"transport": "SMTP",
"options": {
"service": "Mailgun",
"host": "smtp.mailgun.org",
"port": 587,
"secure": false,
"auth": {
"user": "",
"pass": ""
}
}
},
"logging": {
"transports": [
"file",
"stdout"
]
},
"process": "systemd",
"paths": {
"contentPath": "/var/lib/ghost/content"
}
}

View File

@ -0,0 +1,30 @@
{
"url": "http://localhost:2368",
"server": {
"port": 2368,
"host": "::"
},
"mail": {
"transport": "SMTP",
"options": {
"service": "Mailgun",
"host": "smtp.mailgun.org",
"port": 587,
"secure": false,
"auth": {
"user": "",
"pass": ""
}
}
},
"logging": {
"transports": [
"file",
"stdout"
]
},
"process": "systemd",
"paths": {
"contentPath": "/var/lib/ghost/content"
}
}

View File

@ -0,0 +1,41 @@
services:
ghost:
image: ghost:5
restart: always
ports:
- 2368:2368
expose:
- 2368
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: ghost-fusiondance-db-1
database__connection__user: root
database__connection__password: ${DBPASS}
database__connection__database: ghost
VIRTUAL_HOST: "www.${DOMAIN}, ${DOMAIN}"
VIRTUAL_PORT: 2368
LETSENCRYPT_HOST: "${DOMAIN}, www.${DOMAIN}"
LETSENCRYPT_EMAIL: ${EMAIL}
# url: http://0.0.0.0:2368 #Dev
url: https://libertyfusiondance.com #Prod
# contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
# NODE_ENV: development
volumes:
- ./content:/var/lib/ghost/content
# - ./themes:/var/lib/ghost/current/content/themes:rw
db:
image: mysql:8.0
restart: always
environment:
MYSQL_DATABASE: ghost
MYSQL_ROOT_PASSWORD: ${DBPASS}
volumes:
- db:/var/lib/mysql
volumes:
db:
networks:
default:
name: nginx-proxy
external: true

View File

@ -3,6 +3,7 @@ services:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "81:81"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro

View File

@ -1,3 +1,4 @@
DOMAIN=example.com
DBPASS=password
EMAIL=example@mail.com
TZ=America/New_York

4
wiki/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
.env
config/*
db/*

44
wiki/docker-compose.yml Normal file
View File

@ -0,0 +1,44 @@
services:
bookstack:
image: lscr.io/linuxserver/bookstack
container_name: bookstack
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
- APP_URL=https://wiki.${DOMAIN}
- DB_HOST=bookstack_db
- DB_PORT=3306
- DB_USER=bookstack
- DB_PASS=${DBPASS}
- DB_DATABASE=bookstackapp
- VIRTUAL_HOST=wiki.${DOMAIN}
- LETSENCRYPT_HOST=wiki.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
volumes:
- ./config:/config
ports:
- 6875:80
expose:
- "6875"
restart: unless-stopped
depends_on:
- bookstack_db
bookstack_db:
image: lscr.io/linuxserver/mariadb
container_name: bookstack_db
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
- MYSQL_ROOT_PASSWORD=${DBPASS}
- MYSQL_DATABASE=bookstackapp
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=${DBPASS}
volumes:
- ./db:/config
restart: unless-stopped
networks:
default:
name: nginx-proxy
external: true