Add info about postgresql in README
This commit is contained in:
@@ -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
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user