NOTE: This service needs a static ip.
NOTE: Activate termination protection on the EC2!!!
Get Docker CE for Ubuntu | Docker Documentation
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo groupadd docker
sudo gpasswd -a $USER docker
newgrp docker
docker run hello-world
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
git clone https://github.com/marcopeg/humble-cli.git /home/ubuntu/.humble-cli
sudo ln -s /home/ubuntu/.humble-cli/bin/humble.sh /usr/local/bin/humble
sudo apt-get install make
git clone https://github.com/alialfredji/srv-neo4j.git
cd srv-neo4j
Create .env.local
with your costum environment variables, use .env
as example.
- Check if disk is initialized
make status
- Get more info about disk. Use env INSTANCE_DISK_PATH to set the right disk path
make info
- Mount disk to /docker-data
make mount-disk
- Start neo4j container
make run-neo4j
- Your container should be running now :)
IMPORTANT: set the automatic snapshot so you dont lose data or setup a backup container!!!
From your cloud console, edit the volume to the new desired size.
- When disk initialization is done, login to machine and run:
make info make resize-disk