Running GoToSocial on Cloud Run.
- Create a Google Cloud Project
- Enable billing for a project
- Create buckets
- Setup Artifact Registry
- Setup Cloud Run
- Setup Building repositories from GitHub
- Create a Cloud Build trigger
- Apply the following IAM roles:
- Cloud Build Service Account
- Service Account User
- Cloud Run Admin
- Prepare a storage bucket used by
GTS_STORAGE_S3_*
- Apply the following IAM roles:
- Setup substitution variables and secrets
- See cloudbuild.yaml
- Trigger the Cloud Build trigger
- Mapping custom domains to the Cloud Run service named "gts"
- Place a .env to project root
- Run
docker build -t gts .
- Run
docker run --rm -p 8080:8080 --env-file=.env gts
- Run
docker exec -it <container id> sh
- Do something like https://docs.gotosocial.org/en/latest/getting_started/user_creation/
As far as I know, you can't. Please following the local deployment steps.
Or create Cloud Run jobs with same container image but change command or args.