Starting Docker Compose

A docker-compose config file describes any number of docker images that should be fetched, cached and started together on command.

We emulate the config provided for PSU deploys.

We provision a virtual machine, a 'droplet', with 1 GB memory, 25 GB disk in the SFO1 datacenter, running Ubuntu 18.04.3. We configure this for serving https traffic from docker containers.

docker-compose.yml

sample: container_name: sample image: 'nginxdemos/hello' expose: - '80' environment: - SAMPLE_ENV=sample restart: always

Serves a simple page containing its hostname, IP address and port as wells as the request URI and the local time of the webserver. hub