Skip to content

Instantly share code, notes, and snippets.

@neogeogre
Last active February 16, 2023 16:21
Show Gist options
  • Save neogeogre/a0cf16fa66b58cde6e476ed01ef7683b to your computer and use it in GitHub Desktop.
Save neogeogre/a0cf16fa66b58cde6e476ed01ef7683b to your computer and use it in GitHub Desktop.
Generate a postgis container
version: '3.7'
services:
postgis:
image: postgis/postgis:12-3.1
restart: always
environment:
- POSTGRES_USER=demo
- POSTGRES_PASSWORD=demo
- POSTGRES_DB=demo
ports:
- '5432:5432'
extra_hosts:
- "host.docker.internal:host-gateway"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment