Skip to content

Commit f8fd796

Browse files
raghavyuvazhravan
authored andcommitted
fix: db getting wiped due to hosts permission issue, switches back to named docker maintained volumes (#507)
1 parent 8eb0a0a commit f8fd796

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ services:
3636
ports:
3737
- "${DB_PORT:-5432}:5432"
3838
volumes:
39-
- ${NIXOPUS_HOME:-/etc/nixopus}/db:/var/lib/postgresql/data
39+
- nixopus-db-data:/var/lib/postgresql/data
4040
networks:
4141
- nixopus-network
4242
healthcheck:
@@ -126,3 +126,6 @@ services:
126126
networks:
127127
nixopus-network:
128128
driver: bridge
129+
130+
volumes:
131+
nixopus-db-data:

0 commit comments

Comments
 (0)