https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-docker-compose
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04
Clone repository:
git clone https://github.com/DjordjeVucinac82/444noresponse.git
cd 444noresponse/
Rename .env.example to .env:
mv .env.example .env
sudo nano .env
Populate paswords fields in new .env file (your_password)
Start docker-compose:
sudo chmod +x init-letsencrypt.sh
sudo ./init-letsencrypt.sh
Domain name should be A records domain name to IP.
CloudFormation Stack will create EC2 Ubuntu 20.04 server in eu-central-1 (Frankfurt) region with docker and docker-compose.
Need to install aws cli: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
Setup AWS access keys and region: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/setup-credentials.html \
Run these commands to start, update or delete CloudFormation stack, use --profile your_profile flag if needed:
aws cloudformation create-stack --stack-name noresponse --template-body file://CloudFormationStack.yml
aws cloudformation update-stack --stack-name noresponse --template-body file://CloudFormationStack.yml
aws cloudformation delete-stack --stack-name noresponse
aws cloudformation validate-template --template-body file://CloudFormationStack.yml
TODO - I'll make new repository for new environment.