container security #274

Merged
mg merged 9 commits from dockersec into master 2025-01-03 14:57:43 +01:00
13 changed files with 46 additions and 48 deletions
Showing only changes of commit 0ece4678c6 - Show all commits

View file

@ -6,7 +6,7 @@ services:
image: gitea/act_runner:0.2.11 image: gitea/act_runner:0.2.11
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
volumes: volumes:
- act_runner_data:/data - act_runner_data:/data

View file

@ -7,7 +7,7 @@ services:
container_name: authelia container_name: authelia
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
environment: environment:
TZ: Europe/Berlin TZ: Europe/Berlin
@ -44,7 +44,7 @@ security_opt:
container_name: authelia-redis container_name: authelia-redis
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
environment: environment:
TZ: Europe/Berlin TZ: Europe/Berlin
@ -63,7 +63,7 @@ security_opt:
command: --transaction-isolation=READ-COMMITTED --log-bin=ROW --innodb_read_only_compressed=OFF command: --transaction-isolation=READ-COMMITTED --log-bin=ROW --innodb_read_only_compressed=OFF
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro

View file

@ -5,7 +5,7 @@ services:
image: ghcr.io/gramps-project/grampsweb:v24.12.2 # version image: ghcr.io/gramps-project/grampsweb:v24.12.2 # version
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
ports: ports:
- "6483:5000" # host:docker - "6483:5000" # host:docker
@ -49,7 +49,7 @@ security_opt:
container_name: grampsweb-redis container_name: grampsweb-redis
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
healthcheck: healthcheck:
test: ["CMD", "redis-cli", "ping"] test: ["CMD", "redis-cli", "ping"]

View file

@ -4,7 +4,7 @@ services:
container_name: lldap container_name: lldap
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
ports: ports:
- "3890:3890" - "3890:3890"
@ -27,7 +27,7 @@ security_opt:
image: "postgres:17.2" image: "postgres:17.2"
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
environment: environment:
POSTGRES_USER: lldap POSTGRES_USER: lldap

View file

@ -5,7 +5,7 @@ services:
image: "ghcr.io/miniflux/miniflux:2.2.4" image: "ghcr.io/miniflux/miniflux:2.2.4"
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
depends_on: depends_on:
- mf-db17 - mf-db17
@ -39,7 +39,7 @@ security_opt:
image: "postgres:17.2" image: "postgres:17.2"
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
environment: environment:
POSTGRES_USER: miniflux POSTGRES_USER: miniflux
@ -62,7 +62,7 @@ security_opt:
- miniflux - miniflux
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
environment: environment:
TZ: Europe/Berlin TZ: Europe/Berlin

View file

@ -5,7 +5,7 @@ services:
image: "deluan/navidrome:0.54.3" image: "deluan/navidrome:0.54.3"
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
environment: environment:
ND_AUTOIMPORTPLAYLISTS: true ND_AUTOIMPORTPLAYLISTS: true

View file

@ -6,7 +6,7 @@ services:
command: --transaction-isolation=READ-COMMITTED --log-bin=ROW --innodb_read_only_compressed=OFF command: --transaction-isolation=READ-COMMITTED --log-bin=ROW --innodb_read_only_compressed=OFF
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
@ -41,7 +41,7 @@ security_opt:
- internal - internal
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
command: "redis-server --requirepass {{ lookup('viczem.keepass.keepass', 'nextcloud/nextcloud_redis_host_password', 'password') }}" command: "redis-server --requirepass {{ lookup('viczem.keepass.keepass', 'nextcloud/nextcloud_redis_host_password', 'password') }}"
healthcheck: healthcheck:
@ -56,7 +56,7 @@ security_opt:
image: "registry.mgrote.net/nextcloud-cronjob:latest" image: "registry.mgrote.net/nextcloud-cronjob:latest"
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
network_mode: none network_mode: none
volumes: volumes:
@ -72,7 +72,7 @@ security_opt:
container_name: nextcloud-app container_name: nextcloud-app
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
depends_on: depends_on:
- nextcloud-db - nextcloud-db

View file

@ -4,7 +4,7 @@ services:
container_name: postfix container_name: postfix
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
ports: ports:
- 1025:25 - 1025:25

View file

@ -2,7 +2,7 @@ services:
oci-registry: oci-registry:
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
container_name: oci-registry container_name: oci-registry
image: "registry:2.8.3" image: "registry:2.8.3"
@ -56,7 +56,7 @@ security_opt:
- internal - internal
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
environment: environment:
REDIS_PASSWORD: "{{ lookup('viczem.keepass.keepass', 'oci-registry-redis-pw', 'password') }}" REDIS_PASSWORD: "{{ lookup('viczem.keepass.keepass', 'oci-registry-redis-pw', 'password') }}"
@ -70,7 +70,7 @@ security_opt:
oci-registry-ui: oci-registry-ui:
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
image: "joxit/docker-registry-ui:2.5.7" image: "joxit/docker-registry-ui:2.5.7"
container_name: oci-registry-ui container_name: oci-registry-ui

View file

@ -3,7 +3,7 @@ services:
container_name: routeros-config-export container_name: routeros-config-export
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
image: "registry.mgrote.net/routeros-config-export:latest" image: "registry.mgrote.net/routeros-config-export:latest"
volumes: volumes:

View file

@ -7,8 +7,6 @@ services:
image: "traefik:v3.2.3" image: "traefik:v3.2.3"
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt:
- no-new-privileges=true
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
volumes: volumes:

View file

@ -28,7 +28,7 @@ services:
- 5514:5514/udp #optional - 5514:5514/udp #optional
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
networks: networks:
- postfix - postfix

View file

@ -4,7 +4,7 @@ services:
image: "registry.mgrote.net/httpd:latest" image: "registry.mgrote.net/httpd:latest"
restart: unless-stopped restart: unless-stopped
pull_policy: missing pull_policy: missing
security_opt: security_opt:
- no-new-privileges=true - no-new-privileges=true
networks: networks:
- traefik - traefik