Skip to content

Commit

Permalink
Modified Dockerfile to create copy of keyfile to prevent permissions …
Browse files Browse the repository at this point in the history
…issues
  • Loading branch information
John-Wiens committed Jun 7, 2024
1 parent 86d2688 commit 3aae8e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ services:
volumes:
- mongodb_data_container:/data/db
- ./docker/mongo/manage-volume-cron:/docker-entrypoint-initdb.d/manage-volume-cron
- ./docker/mongo/keyfile.txt:/data/keyfile.txt
- ./docker/mongo/keyfile.txt:/data/keyfile-import.txt
- ./docker/mongo/a_init_replicas.js:/docker-entrypoint-initdb.d/a_init_replicas.js
- ./docker/mongo/b_create_indexes.js:/docker-entrypoint-initdb.d/b_create_indexes.js
- ./docker/mongo/manage_volume.js:/docker-entrypoint-initdb.d/manage_volume.js
Expand All @@ -98,6 +98,7 @@ services:
dos2unix /etc/cron.d/manage-volume-cron
chmod 644 /etc/cron.d/manage-volume-cron
systemctl restart cron
cp /data/keyfile-import.txt /data/keyfile.txt
chmod 400 /data/keyfile.txt
chown 999:999 /data/keyfile.txt
Expand Down

0 comments on commit 3aae8e1

Please sign in to comment.