Skip to content

ternandsparrow/openforis-collect-earth-pg-docker

Repository files navigation

See here for what we're setting up.

Tools required:

  • Docker >= 18.03.x
  • docker-compose >= 1.25.x

Quick steps to get started with the service

  1. create a new VM
  2. install docker and docker-compose
  3. clone this repo onto the VM
  4. copy example.env to .env
  5. edit .env to add the required details
  6. spin up the compose stack by executing: docker-compose up -d
  7. you can now connect to the DB on 5432

Detailed commands

Trigger adhoc PG backup to S3:

./trigger-backup-in-container.sh

To start the service, or to update after making changes to docker-compose.yml:

docker-compose up --detach # or simply

To stop the stack, but leave the DB data volume alone:

docker-compose down
# from here you can run the `up` command to start the stack again, and it'll pick up the existing DB data volume

To completely remove all traces, including the DB data, use:

docker-compose down --volumes # the --volumes flag nukes the volumes too

View the volume:

# list all volumes
docker volume ls
docker volume inspect openforis-collect-earth-pg-docker_pgdata

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages