❇️ 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:
parent
43cb9f7e50
commit
bab8618650
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue