Skip to content

Instantly share code, notes, and snippets.

@smashnet
smashnet / docker-compose.yml
Last active December 7, 2023 05:50
Docker-Compose: Mastodon v3.5.3 with Traefik v2.9
version: "3.5"
# Variables to fill in:
# Line 23: <LETSENCRYPT_MAIL_ADDRESS> - your mail address for contact with Let's Encrypt
# Line 36: <TRAEFIK_DASHBOARD_ADMIN_PASSWORD> - MD5 hash of your password (use http://www.htaccesstools.com/htpasswd-generator/)
# Line 54: <POSTGRES_PASSWORD> - the password for the postgres db. Use the same during mastodon:setup!
# Lines 31, 86, 111: <DOMAIN> - e.g. social.yourdomain.com (Must have an A record pointing to your box' IP) (AAAA for IPv6 ;)
services:
traefik:
@lesstif
lesstif / laravel-deploy-on-linux-ami2.sh
Last active June 15, 2021 09:15
laravel & php 7.3 & mysql install on amazon linux ami2
#!/bin/bash
sudo yum update
## mkswap
## see https://aws.amazon.com/ko/premiumsupport/knowledge-center/ec2-memory-swap-file/
sudo dd if=/dev/zero of=/swapfile bs=1G count=4
## install python3, php, nginx, redis
sudo amazon-linux-extras install python3 php7.3 nginx1 redis4.0 epel