add volume to example app config, add module 9

This commit is contained in:
sid palas
2023-01-30 19:37:44 -05:00
parent 2e4b6e938e
commit 15a831b04b
3 changed files with 40 additions and 0 deletions

View File

@ -43,6 +43,7 @@ docker-run-all:
docker run -d \
--name db \
-e POSTGRES_PASSWORD=foobarbaz \
-v pgdata:/var/lib/postgresql/data \
-p 5432:5432 \
--restart unless-stopped \
postgres:15.1-alpine

View File

@ -42,7 +42,11 @@ services:
restart: unless-stopped
db:
image: postgres:15.1-alpine
volumes:
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=foobarbaz
ports:
- 5432:5432
volumes:
pgdata: