Skip to content

Instantly share code, notes, and snippets.

@taras
Created October 4, 2021 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taras/2dd1ce32d0f58b4a5c6a13af80656663 to your computer and use it in GitHub Desktop.
Save taras/2dd1ce32d0f58b4a5c6a13af80656663 to your computer and use it in GitHub Desktop.
backend:
database:
client: pg
connection:
host: localhost
port: 5432
user: postgres
password: postgres
version: "3.7"
services:
postgres:
image: "postgres:12"
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_INITDB_ARGS: "--encoding=UTF8"
ports:
- "5432:5432"
volumes:
- ./.data:/var/lib/postgresql/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment