❇️ 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
env_file: netbox.env
volumes:
- ./startup_scripts:/opt/netbox/startup_scripts
- ./initializers:/opt/netbox/initializers
- ./startup_scripts:/opt/netbox/startup_scripts:ro
- ./initializers:/opt/netbox/initializers:ro
- netbox-nginx-config:/etc/netbox-nginx/
- netbox-static-files:/opt/netbox/netbox/static
- netbox-media-files:/opt/netbox/netbox/media
@ -24,8 +24,8 @@ services:
ports:
- 8080
volumes:
- netbox-static-files:/opt/netbox/netbox/static
- netbox-nginx-config:/etc/netbox-nginx/
- netbox-static-files:/opt/netbox/netbox/static:ro
- netbox-nginx-config:/etc/netbox-nginx/:ro
postgres:
image: postgres:9.6-alpine
env_file: postgres.env