Add info about postgresql in README

This commit is contained in:
Rikard Bartholf
2021-10-18 16:57:10 +02:00
parent e3235ac7a8
commit c01143588a
+30
View File
@@ -62,3 +62,33 @@ To do the actual migration, then just run:
``` ```
# ./db-upgrade [ENVIRONMENT NAME] # ./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
```