Skip to content

Commit

Permalink
Adjust geoipupdate permissions on start.
Browse files Browse the repository at this point in the history
New versions of geoipupdate don't run as root anymore, change folder perms accordingly.
  • Loading branch information
accolon committed May 7, 2023
1 parent c03b843 commit 221822d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/Dockerfiles/parsedmarc-init/start.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ echo "Setting permissions..."
chmod g+rwx -R /usr/share/elasticsearch/data/
chgrp 0 -R /usr/share/elasticsearch/data/

echo "## GEOIPUPDATE"
echo "Setting permissions..."
chown 1000:1000 -R /usr/share/GeoIP/

echo "## NGINX"
echo "Checking nginx certs..."
cd /etc/nginx/ssl/
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
- ./data/conf/parsedmarc/:/etc/parsedmarc/:rw
- ./data/conf/nginx/ssl/:/etc/nginx/ssl/:rw
- ./data/data/elasticsearch:/usr/share/elasticsearch/data/:rw
- ./data/data/geoipupdate/:/usr/share/GeoIP:z,rw
networks:
- parsedmarc-network
healthcheck:
Expand Down Expand Up @@ -89,6 +90,9 @@ services:
restart: always
volumes:
- ./data/data/geoipupdate/:/usr/share/GeoIP:z,rw
depends_on:
parsedmarc-init:
condition: service_healthy

nginx:
image: nginx:alpine
Expand Down

0 comments on commit 221822d

Please sign in to comment.