Deployment config and script for "ap.third-branches.net".
- App Hosting: AWS Lightsail Instance
- Blueprint: CentOS 9 Stream
- Bundle:
micro
- DB: AWS Lightsail Database
- Blueprint: PostgreSQL 15
- Bundle:
micro
- Media Hosting: Cloudflare R2
- Reverse Proxy: Cloudflare Tunnel
-
Clone repository.
-
Create resources using Terraform.
cd terraform terraform plan terraform apply
Required value details:
variables.tf
-
Check the output values to use when setting up a GoToSocial instance.
Output value details:
output.tf
-
Login to created Lightsail instance.
-
Install docker and docker-compose.
- Reference: Official Document
-
Clone repository on Lightsail instance.
-
Save the values output during infrastructure setup to the
.env
file underenvironments/
.TUNNEL_TOKEN
: Token used to set up Cloudflare Tunnel.GTS_*
: Environment variables that configure the GoToSocial instance.- Details: GoToSocial Configuration Overview
-
Start docker containers.
docker compose up -d
-
Login to Lightsail instance.
-
Stop docker containers.
docker compose down
-
Pull docker images.
docker compose pull
-
Restart docker containers.
docker compose up -d