diff --git a/README.md b/README.md index 551d25c..1e2f2d0 100644 --- a/README.md +++ b/README.md @@ -62,3 +62,33 @@ To do the actual migration, then just run: ``` # ./db-upgrade [ENVIRONMENT NAME] ``` + +**Example docker-compose.yml for postgres** + +Execute this first: +```bash +mkdir data +chmod o+rwx data +``` + +```yml +version: '3.7' + +services: + + db: + image: postgres:13 + restart: always + environment: + POSTGRES_PASSWORD: postgres + ports: + - "5432:5432" + volumes: + - ./data:/var/lib/postgresql/data + - /var/run/postgresql:/var/run/postgresql + +networks: + default: + external: true + name: postgres +```