mirror of
https://github.com/librenms/docker.git
synced 2026-01-23 02:14:48 +00:00
Run as non-root user (#6)
Switch to s6-overlay as process supervisor Prevent exposing Nginx and PHP version Bind to unprivileged port (8000) Remove php-fpm access log (already mirrored by nginx)
This commit is contained in:
parent
fbb387d0da
commit
3a92d62e86
27 changed files with 377 additions and 332 deletions
|
|
@ -61,8 +61,8 @@ services:
|
|||
domainname: example.com
|
||||
hostname: librenms
|
||||
ports:
|
||||
- target: 80
|
||||
published: 80
|
||||
- target: 8000
|
||||
published: 8000
|
||||
protocol: tcp
|
||||
depends_on:
|
||||
- db
|
||||
|
|
@ -79,7 +79,7 @@ services:
|
|||
- "DB_NAME=${MYSQL_DATABASE}"
|
||||
- "DB_USER=${MYSQL_USER}"
|
||||
- "DB_PASSWORD=${MYSQL_PASSWORD}"
|
||||
- "DB_TIMEOUT=30"
|
||||
- "DB_TIMEOUT=60"
|
||||
env_file:
|
||||
- "./librenms.env"
|
||||
restart: always
|
||||
|
|
@ -101,7 +101,7 @@ services:
|
|||
- "DB_NAME=${MYSQL_DATABASE}"
|
||||
- "DB_USER=${MYSQL_USER}"
|
||||
- "DB_PASSWORD=${MYSQL_PASSWORD}"
|
||||
- "DB_TIMEOUT=30"
|
||||
- "DB_TIMEOUT=60"
|
||||
- "SIDECAR_CRON=1"
|
||||
env_file:
|
||||
- "./librenms.env"
|
||||
|
|
@ -131,7 +131,7 @@ services:
|
|||
- "DB_NAME=${MYSQL_DATABASE}"
|
||||
- "DB_USER=${MYSQL_USER}"
|
||||
- "DB_PASSWORD=${MYSQL_PASSWORD}"
|
||||
- "DB_TIMEOUT=30"
|
||||
- "DB_TIMEOUT=60"
|
||||
- "SIDECAR_SYSLOGNG=1"
|
||||
env_file:
|
||||
- "./librenms.env"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue