Skip to content

Instantly share code, notes, and snippets.

@dumpofmemory
Created January 14, 2020 09:22
Show Gist options
  • Save dumpofmemory/2648c14add26bf2ba755854cd4820bde to your computer and use it in GitHub Desktop.
Save dumpofmemory/2648c14add26bf2ba755854cd4820bde to your computer and use it in GitHub Desktop.
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.34
restart: always
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
# uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
# managementApiSecret: my-secret
databases:
default:
connector: postgres
host: postgres
user: prisma
password: prisma
rawAccess: true
port: 5432
migrations: true
postgres:
image: postgres
restart: always
# Uncomment the next two lines to connect to your your database from outside the Docker environment, e.g. using a database GUI like Postico
# ports:
# - "5432:5432"
environment:
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
volumes:
- postgres:/var/lib/postgresql/data
volumes:
postgres:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment