style: reorder service keys per dclint

This commit is contained in:
lingkai5wu committed 2026-10-16 15:45:21 +08:00
1 parent 20864fd260
commit dc64f06273
10 files changed
+40 -40

No files matched your search

+2 -2
View File
@@ -13,8 +13,6 @@ services:
networks: networks:
- proxy - proxy
restart: unless-stopped restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy: deploy:
resources: resources:
limits: limits:
@@ -23,6 +21,8 @@ services:
reservations: reservations:
cpus: "0.2" cpus: "0.2"
memory: 128M memory: 128M
security_opt:
- no-new-privileges:true
networks: networks:
proxy: proxy:
external: true external: true
+6 -6
View File
@@ -20,18 +20,16 @@ services:
networks: networks:
- proxy - proxy
restart: unless-stopped restart: unless-stopped
security_opt:
- no-new-privileges:true
# Root keeps only the capabilities restic needs to read and restore
# files owned by other users.
cap_drop:
- ALL
cap_add: cap_add:
- CHOWN - CHOWN
- DAC_OVERRIDE - DAC_OVERRIDE
- DAC_READ_SEARCH - DAC_READ_SEARCH
- FOWNER - FOWNER
- FSETID - FSETID
# Root keeps only the capabilities restic needs to read and restore
# files owned by other users.
cap_drop:
- ALL
deploy: deploy:
resources: resources:
limits: limits:
@@ -40,6 +38,8 @@ services:
reservations: reservations:
cpus: "1.0" cpus: "1.0"
memory: 512M memory: 512M
security_opt:
- no-new-privileges:true
networks: networks:
proxy: proxy:
external: true external: true
+2 -2
View File
@@ -7,8 +7,6 @@ services:
- /srv/data/ddns-go:/root - /srv/data/ddns-go:/root
network_mode: host network_mode: host
restart: always restart: always
security_opt:
- no-new-privileges:true
deploy: deploy:
resources: resources:
limits: limits:
@@ -17,3 +15,5 @@ services:
reservations: reservations:
cpus: "0.1" cpus: "0.1"
memory: 16M memory: 16M
security_opt:
- no-new-privileges:true
+2 -2
View File
@@ -13,13 +13,13 @@ services:
networks: networks:
- proxy - proxy
restart: unless-stopped restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy: deploy:
resources: resources:
limits: limits:
cpus: "1.0" cpus: "1.0"
memory: 512M memory: 512M
security_opt:
- no-new-privileges:true
networks: networks:
proxy: proxy:
external: true external: true
+2 -2
View File
@@ -11,8 +11,6 @@ services:
TZ: Asia/Shanghai TZ: Asia/Shanghai
network_mode: host network_mode: host
restart: unless-stopped restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy: deploy:
resources: resources:
limits: limits:
@@ -21,4 +19,6 @@ services:
reservations: reservations:
cpus: "0.2" cpus: "0.2"
memory: 512M memory: 512M
security_opt:
- no-new-privileges:true
stop_grace_period: 60s stop_grace_period: 60s
+15 -15
View File
@@ -21,8 +21,6 @@ services:
- default - default
- proxy - proxy
restart: unless-stopped restart: unless-stopped
security_opt:
- no-new-privileges:true
healthcheck: healthcheck:
disable: false disable: false
deploy: deploy:
@@ -35,6 +33,8 @@ services:
memory: 512M memory: 512M
devices: devices:
- /dev/dri:/dev/dri - /dev/dri:/dev/dri
security_opt:
- no-new-privileges:true
immich-machine-learning: immich-machine-learning:
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
container_name: immich-machine-learning container_name: immich-machine-learning
@@ -43,17 +43,17 @@ services:
env_file: env_file:
- .env - .env
restart: unless-stopped restart: unless-stopped
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
healthcheck: healthcheck:
disable: false disable: false
cap_drop:
- ALL
deploy: deploy:
resources: resources:
limits: limits:
cpus: "2.0" cpus: "2.0"
memory: 4G memory: 4G
security_opt:
- no-new-privileges:true
database: database:
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23 image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
container_name: immich-postgres container_name: immich-postgres
@@ -67,8 +67,6 @@ services:
ports: ports:
- "127.0.0.1:5432:5432" - "127.0.0.1:5432:5432"
restart: unless-stopped restart: unless-stopped
security_opt:
- no-new-privileges:true
healthcheck: healthcheck:
disable: false disable: false
deploy: deploy:
@@ -79,22 +77,22 @@ services:
reservations: reservations:
cpus: "0.2" cpus: "0.2"
memory: 128M memory: 128M
security_opt:
- no-new-privileges:true
shm_size: 128mb shm_size: 128mb
redis: redis:
image: docker.io/valkey/valkey:9@sha256:c123e3715db63d06d4ad6964884037aa0d5d4d703939b9929954112889708e1d image: docker.io/valkey/valkey:9@sha256:c123e3715db63d06d4ad6964884037aa0d5d4d703939b9929954112889708e1d
container_name: immich-redis container_name: immich-redis
restart: unless-stopped restart: unless-stopped
security_opt: healthcheck:
- no-new-privileges:true test: redis-cli ping || exit 1
# The official image starts as root and drops to the valkey user.
cap_drop:
- ALL
cap_add: cap_add:
- CHOWN - CHOWN
- SETGID - SETGID
- SETUID - SETUID
healthcheck: # The official image starts as root and drops to the valkey user.
test: redis-cli ping || exit 1 cap_drop:
- ALL
deploy: deploy:
resources: resources:
limits: limits:
@@ -103,6 +101,8 @@ services:
reservations: reservations:
cpus: "0.1" cpus: "0.1"
memory: 64M memory: 64M
security_opt:
- no-new-privileges:true
networks: networks:
proxy: proxy:
external: true external: true
+4 -4
View File
@@ -24,8 +24,6 @@ services:
extra_hosts: extra_hosts:
- "host.internal:172.31.255.1" - "host.internal:172.31.255.1"
restart: unless-stopped restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy: deploy:
resources: resources:
limits: limits:
@@ -34,6 +32,8 @@ services:
reservations: reservations:
cpus: "0.05" cpus: "0.05"
memory: 16M memory: 16M
security_opt:
- no-new-privileges:true
acme-sh: acme-sh:
image: neilpang/acme.sh:3.1.4 image: neilpang/acme.sh:3.1.4
container_name: acme.sh container_name: acme.sh
@@ -46,8 +46,6 @@ services:
CF_Zone_ID: ${CF_ZONE_ID} CF_Zone_ID: ${CF_ZONE_ID}
command: daemon command: daemon
restart: unless-stopped restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy: deploy:
resources: resources:
limits: limits:
@@ -56,6 +54,8 @@ services:
reservations: reservations:
cpus: "0.05" cpus: "0.05"
memory: 16M memory: 16M
security_opt:
- no-new-privileges:true
networks: networks:
proxy: proxy:
name: proxy name: proxy
+3 -3
View File
@@ -13,11 +13,9 @@ services:
networks: networks:
- proxy - proxy
restart: unless-stopped restart: unless-stopped
security_opt: user: 1000:1000
- no-new-privileges:true
cap_drop: cap_drop:
- ALL - ALL
user: 1000:1000
deploy: deploy:
resources: resources:
limits: limits:
@@ -26,6 +24,8 @@ services:
reservations: reservations:
cpus: "0.2" cpus: "0.2"
memory: 64M memory: 64M
security_opt:
- no-new-privileges:true
networks: networks:
proxy: proxy:
external: true external: true
+2 -2
View File
@@ -19,13 +19,13 @@ services:
networks: networks:
- proxy - proxy
restart: unless-stopped restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy: deploy:
resources: resources:
limits: limits:
cpus: "1.0" cpus: "1.0"
memory: 2G memory: 2G
security_opt:
- no-new-privileges:true
networks: networks:
proxy: proxy:
external: true external: true
+2 -2
View File
@@ -13,8 +13,6 @@ services:
ports: ports:
- "192.168.10.101:445:445" - "192.168.10.101:445:445"
restart: always restart: always
security_opt:
- no-new-privileges:true
deploy: deploy:
resources: resources:
limits: limits:
@@ -23,3 +21,5 @@ services:
reservations: reservations:
cpus: "0.2" cpus: "0.2"
memory: 128M memory: 128M
security_opt:
- no-new-privileges:true