Skip to content

Commit

Permalink
docker: use named volumes instead of creating folders in $HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Oct 12, 2024
1 parent 9482e1d commit e3f97bc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ services:
image: mongo:7.0.12
hostname: notesnook-db
volumes:
- ${HOME}/.notesnook/db/data:/data/db
- ${HOME}/.notesnook/db/configdb:/data/configdb
- dbdata:/data/db
- dbdata:/data/configdb
networks:
- notesnook
command: --replSet rs0 --bind_ip_all
Expand Down Expand Up @@ -92,7 +92,7 @@ services:
networks:
- notesnook
volumes:
- ${HOME}/.notesnook/s3:/data/s3
- s3data:/data/s3
environment:
MINIO_BROWSER: "on"
depends_on:
Expand Down Expand Up @@ -228,3 +228,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
networks:
notesnook:

volumes:
dbdata:
s3data:

0 comments on commit e3f97bc

Please sign in to comment.