Strapi v5 + AWS S3 | Starter Template
Strapi v5 + AWS S3 Starter Template
Postgres
railwayapp-templates/postgres-ssl:16
Just deployed
/var/lib/postgresql/data
strapi-aws-s3-starter-template
compbyter/strapi-aws-s3-starter-template
Just deployed
Strapi v5 + AWS S3 Starter Template
Notes
When this template is running on Railway, Strapi will connect to the Postgres Database through the private network, saving you on database egress fees.
Developing Locally
- When developing locally, this Strapi template will connect to the Postgres server from its public TCP Proxy.
- Enable the feature flag Template Service Eject in the Feature Flags menu.
- Within the service settings of the Strapi service, click the Eject button on the upstream repository.
- Clone the newly created repository locally.
- Install Strapi's dependencies with
yarn install
ornpm install
. - Install the Railway CLI (Instructions).
- If this is your first time using the CLI, make sure to log in with
railway login
. - Within the local repository, run
railway link
to link the local repository to the Strapi service on Railway. - Start Strapi for development with
railway run yarn run develop
orrailway run npm run develop
. - This command will run Strapi in development mode with the service variables available locally.
Open your browser to http://127.0.0.1:1337/admin
Acknowledgments
This project was inspired by Szilard Koppel's project. A big thank you to Szilard for his amazing work!
- Szilard Koppel's GitHub repository: https://github.com/szilardkoppel/railway.app-strapi
- Railway template: https://railway.com/template/e10OW1
Purpose
This project is a Strapi v5 + AWS S3 Starter Template. It is designed to work with just four parameters:
AWS_ACCESS_KEY_ID
AWS_ACCESS_SECRET
AWS_BUCKET_NAME
AWS_REGION
These parameters can also be provided as null
. The project will still deploy, but media uploads (e.g., JPG, PNG) will not be functional without valid values.
Template Content
strapi-aws-s3-starter-template
compbyter/strapi-aws-s3-starter-templateAWS_REGION
AWS_BUCKET_NAME
AWS_ACCESS_KEY_ID
AWS_ACCESS_SECRET