Skip to content

Instantly share code, notes, and snippets.

@chris
Created July 7, 2020 20:10
Show Gist options
  • Save chris/42a10f970a6bafdc4247c515c415ca64 to your computer and use it in GitHub Desktop.
Save chris/42a10f970a6bafdc4247c515c415ca64 to your computer and use it in GitHub Desktop.
GitHub Actions Postgres PostGIS service
services:
postgres:
image: postgis/postgis:10-2.5
env:
# must specify password for PG Docker container image, see: https://registry.hub.docker.com/_/postgres?tab=description&page=1&name=10
POSTGRES_PASSWORD: password
POSTGRES_DB: your_test_db_name
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment