optimized mastodon and pixelfed implementation

This commit is contained in:
2022-11-16 16:04:01 +01:00
parent d43b98233f
commit 1a6f802900
6 changed files with 36 additions and 26 deletions

View File

@@ -30,7 +30,7 @@ services:
depends_on:
- database
- redis
- app
- application
healthcheck:
test: php artisan horizon:status | grep running
interval: 60s
@@ -56,7 +56,7 @@ services:
logging:
driver: journald
volumes:
- redis:/data
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 1s

View File

@@ -1,8 +1,8 @@
## Crypto
APP_KEY=
APP_KEY={{pixelfed_app_key}}
## General Settings
APP_NAME="Pixelfed Prod"
APP_NAME="Pixelfed on Veen.World"
APP_ENV=production
APP_DEBUG=false
APP_URL=https://{{domain}}
@@ -56,16 +56,12 @@ MAIL_ENCRYPTION=tls
## Databases (MySQL)
DB_CONNECTION=mysql
DB_DATABASE=pixelfed_prod
DB_HOST=db
DB_PASSWORD=pixelfed_db_pass
DB_DATABASE=pixelfed
DB_HOST=database
DB_PASSWORD="{{pixelfed_database_password}}"
DB_PORT=3306
DB_USERNAME=pixelfed
# pass the same values to the db itself
MYSQL_DATABASE=pixelfed_prod
MYSQL_PASSWORD=pixelfed_db_pass
MYSQL_RANDOM_ROOT_PASSWORD=true
MYSQL_USER=pixelfed
MYSQL_DATABASE="pixelfed"
MYSQL_USER="pixelfed"
MYSQL_PASSWORD="{{pixelfed_database_password}}"
@@ -75,7 +71,7 @@ MYSQL_ROOT_PASSWORD="{{pixelfed_database_password}}"
REDIS_CLIENT=phpredis
REDIS_SCHEME=tcp
REDIS_HOST=redis
REDIS_PASSWORD=redis_password
#REDIS_PASSWORD=
REDIS_PORT=6379
REDIS_DATABASE=0
@@ -136,4 +132,6 @@ TRUST_PROXIES="*"
## Passport
#PASSPORT_PRIVATE_KEY=
#PASSPORT_PUBLIC_KEY=
#PASSPORT_PUBLIC_KEY=
ENABLE_CONFIG_CACHE=true