See here for what we're setting up.
- Docker >= 18.03.x
- docker-compose >= 1.25.x
- create a new VM
- install
docker
anddocker-compose
- clone this repo onto the VM
- copy
example.env
to.env
- edit
.env
to add the required details - spin up the compose stack by executing:
docker-compose up -d
- you can now connect to the DB on
5432
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