❇️ Make relevant mounts read-only

Some mounts are not supposed to be writable by
a container. The docker-compose file has been
improved in that direction in order to enforce this.
This commit is contained in:
Christian Mäder 2018-02-16 10:30:26 +01:00
parent 43cb9f7e50
commit bab8618650
No known key found for this signature in database
GPG Key ID: 92FFD0A711F196BB

View File

@ -10,8 +10,8 @@ services:
- postgres - postgres
env_file: netbox.env env_file: netbox.env
volumes: volumes:
- ./startup_scripts:/opt/netbox/startup_scripts - ./startup_scripts:/opt/netbox/startup_scripts:ro
- ./initializers:/opt/netbox/initializers - ./initializers:/opt/netbox/initializers:ro
- netbox-nginx-config:/etc/netbox-nginx/ - netbox-nginx-config:/etc/netbox-nginx/
- netbox-static-files:/opt/netbox/netbox/static - netbox-static-files:/opt/netbox/netbox/static
- netbox-media-files:/opt/netbox/netbox/media - netbox-media-files:/opt/netbox/netbox/media
@ -24,8 +24,8 @@ services:
ports: ports:
- 8080 - 8080
volumes: volumes:
- netbox-static-files:/opt/netbox/netbox/static - netbox-static-files:/opt/netbox/netbox/static:ro
- netbox-nginx-config:/etc/netbox-nginx/ - netbox-nginx-config:/etc/netbox-nginx/:ro
postgres: postgres:
image: postgres:9.6-alpine image: postgres:9.6-alpine
env_file: postgres.env env_file: postgres.env