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.

Revisions

  1. chris created this gist Jul 7, 2020.
    11 changes: 11 additions & 0 deletions action-postgis.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    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