Docker Deployment on AWS

Amazon Web Services (AWS) provides the preferred hosting for the SEED Platform.

seed is a Django Project and Django’s documentation is an excellent place for general understanding of this project’s layout.


Ubuntu server 18.04 or newer with a m5ad.xlarge (if using in Production instance)

  • After launching the instance, run the following commands to install docker.

# Install any upgrades
sudo apt-get update
sudo apt-get upgrade -y

# Remove any old docker engines
sudo apt-get remove docker docker-engine containerd runc

# Install docker community edition
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL | sudo apt-key add -
sudo add-apt-repository \
    "deb [arch=amd64] \
    $(lsb_release -cs) \

sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli
# Add your user to the docker group
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker


It is okay if the first command fails

  • Verify that the DNS is working correctly. Run the following and verify the response lists IPs (v6 most likely)

# verify that the dns resolves
docker run --rm seedplatform/seed getent hosts
# or
docker run --rm tutum/dnsutils nslookup
  • Install Docker compose

sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
  • Checkout SEED (or install from the releases).

git clone
  • Add in the Server setting into profile.d. For example add the content below (appropriately filled out) into /etc/profile.d/

export POSTGRES_USER=seed
export POSTGRES_DB=seed
export POSTGRES_PASSWORD=GDEus3fasd1askj89QkAldjfX
export POSTGRES_PORT=5432
export SECRET_KEY="96=7jg%_&[email protected][email protected]*[email protected]%+^"

# The admin user is only valid only until the database is restored
export [email protected]
export SEED_ADMIN_PASSWORD="7FeBWal38*&k3jlfa92lakj8ih4"
export SEED_ADMIN_ORG=default

# For SES
export AWS_SES_REGION_NAME=us-west-2
export [email protected]
  • Before launching the first time, make sure the persistent volumes and the backup directory exist.

docker volume create --name=seed_pgdata
docker volume create --name=seed_media

mkdir -p $HOME/seed-backups


Make sure to have the seed-backups in your path, otherwise the db-postgres container will not launch.

  • Launch the project

cd <checkout dir>

Deploying with OEP

The preferred way to deploy with Docker is using docker swarm and docker stack. Look at the script for implementation details.

The short version is to simply run the command below. Note that the passing of the docker-compose.yml filename is not required if using docker-compose.local.yml.

`bash ./ docker-compose.local.yml `

If deploying using a custom docker-compose yml file, then simple replace the name in the command above. This would be required if using the Open Efficiency Platform work (connecting SEED to Salesforce).