Skip to content

Instantly share code, notes, and snippets.

@AlexDel
Created May 15, 2020 07:58
Show Gist options
  • Save AlexDel/3c766a71111a6015bd04ba9129d0898d to your computer and use it in GitHub Desktop.
Save AlexDel/3c766a71111a6015bd04ba9129d0898d to your computer and use it in GitHub Desktop.
Docker compose config
version: '2'
services:
db:
restart: always
image: postgres:10
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- ./postgres-data:/var/lib/postgresql/data
ports:
- 5432:5432
backend:
restart: always
build: ./backend
ports:
- 8081:8081
volumes:
- ./media:/opt/backend/media
depends_on:
- db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment