Skip to content

Commit 87340cd

Browse files
committed
fix: db appearing wiped
1 parent 62bedfb commit 87340cd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ services:
2727
POSTGRES_USER: postgres
2828
POSTGRES_PASSWORD: CHANGEME # change this for production use
2929
POSTGRES_DB: ziit
30+
PGDATA: /var/lib/postgresql/data
3031
volumes:
3132
- postgres:/var/lib/postgresql/data
33+
post_start:
34+
- command: chown -R 1000:1000 /var/lib/postgresql/data
35+
user: root
3236
networks:
3337
ziit-network:
3438
aliases:

0 commit comments

Comments
 (0)