You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.4 KiB

sudo docker run --rm --name mastdb \
-v /zfspool/tardis/social/postgres14:/var/lib/postgresql/data \
-e POSTGRES_PASSWORD=hohNJPwACtjknR1gY2my7SMQ \
-d postgres:14-alpine
sudo docker exec -it mastdb psql -U postgres
CREATE USER mastodon WITH PASSWORD 'hohNJPwACtjknR1gY2my7SMQ' CREATEDB;
exit
sudo docker stop mastdb
sudo docker-compose run --rm mastodon bundle exec rake mastodon:setup
LOCAL_DOMAIN=social.whytheyfight.com
SINGLE_USER_MODE=false
SECRET_KEY_BASE=813d24759d856c08847ad606d2afb289408bcdd048c17a134685451784d0acde055b328b9f3115d1e0c7717f2c2a8e3475b45edc744e0fcbf91d58b91e20cda7
OTP_SECRET=eb8f275b79eb1d8029bdb2267fa05dc0febbf882bac61f63aad8aab3e40a83454ddb6b8f2793c10f06eb8e310e42880cf74fa690daa5dd429308b4d3cc1c675c
VAPID_PRIVATE_KEY=vAf8eY3VmSqFi1roVfk3UH-LKKkDKYVMZw5WKebbJRQ=
VAPID_PUBLIC_KEY=BAW3Pzrot82P_fmxa55myEg3hEtQ-OIH2kCJtmyeYTD33j9TLAMQr0BGYyH6i-mbMD2g7wr8614lmLoZ-jJXJ64=
DB_HOST=mastdb
DB_PORT=5432
DB_NAME=mastodon
DB_USER=mastodon
DB_PASS=hohNJPwACtjknR1gY2my7SMQ
REDIS_HOST=mastredis
REDIS_PORT=6379
REDIS_PASSWORD=
SMTP_SERVER=smtp.protonmail.ch
SMTP_PORT=587
SMTP_LOGIN=support@whytheyfight.com
SMTP_PASSWORD=M59W124JFYQNA58U
SMTP_AUTH_METHOD=plain
SMTP_OPENSSL_VERIFY_MODE=none
SMTP_ENABLE_STARTTLS=auto
SMTP_FROM_ADDRESS=support@whytheyfight.com
UPDATE_CHECK_URL=
sudo docker exec -it mastodon bin/tootctl accounts create \
WTFxUS \
--email admin@whytheyfight.com \
--confirmed \
--role Owner