This project provides scripts for setting up and updating a server environment using Docker, Nginx, Certbot, AWS CLI, and PM2.
- Ubuntu-based server
- Docker
- Nginx
- Certbot
- AWS CLI
- PM2
- AWS ECR repository with a Docker image
-
Clone this repository to your server.
-
Navigate to the project directory: cd project-directory
-
Create a
.env
file and populate it with the required environment variables. You can use the provided.env.example
as a template. -
Create a
.env.docker
file and populate it with the environment variables specific to the Docker container. You can use the provided.env.docker.example
as a template. -
Make the run script executable: chmod +x run.sh
-
Run the run script: ./run.sh
- The server environment can be started, stopped, and managed using ./run.sh
This project is licensed under the MIT License.