Getting Started/Self Hosting/Installation
AWS ECS (Fargate)
AWS ECS (Fargate) Installation
Deploying NocoDB on AWS ECS (Fargate)
This guide will walk you through deploying NocoDB on Amazon ECS using Fargate.
Prerequisites
- AWS CLI configured with appropriate permissions
- Basic understanding of AWS ECS and Fargate
Deployment Steps
-
Create ECS Cluster
-
Create a Log Group:
-
Create an ECS Task Definition:
Every time you create it, it will add a new version. If it is not existing, the version will be 1.
:::tip This json file defines the container specification. You can define secrets such as NC_DB and environment variables here. :::
Example
task-definition.json
: -
Create an ECS Service:
If your service fails to start, you may check the logs in ECS console or in Cloudwatch. Generally it fails due to the connection between ECS container and NC_DB. Make sure the security groups have the correct inbound and outbound rules.
Important Notes
- Ensure that your security groups have the correct inbound and outbound rules.
- The NC_DB environment variable should be properly set to connect to your database.
- Monitor the ECS console and CloudWatch logs for any deployment issues.
- You can customize the task definition and service configuration based on your requirements.