Created
July 7, 2020 20:10
-
-
Save chris/42a10f970a6bafdc4247c515c415ca64 to your computer and use it in GitHub Desktop.
GitHub Actions Postgres PostGIS service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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