1
0

🔧 chore(apps): set the pull policy for all services using fixed tag images

- add `pull_policy: always` to all service definitions across all docker-compose files
- ensure consistent image update behavior for all applications
- maintain existing network configurations and external network settings
- preserve all other service configurations and environment variables
This commit is contained in:
pooneyy
2025-11-10 16:10:24 +08:00
parent 69fb87be1a
commit 7ff35caf28
405 changed files with 1419 additions and 1014 deletions

View File

@@ -6,18 +6,19 @@ services:
1panel-network:
ipv4_address: ${SUBNET_PREFIX}.234
image: chaitin/safeline-mgt:latest
pull_policy: always
volumes:
- /etc/localtime:/etc/localtime:ro
- ${SAFELINE_DIR}/resources/mgt:/app/data
- ${SAFELINE_DIR}/logs/nginx:/app/log/nginx:z
- ${SAFELINE_DIR}/resources/sock:/app/sock
- /var/run:/app/run
- /etc/localtime:/etc/localtime:ro
- ${SAFELINE_DIR}/resources/mgt:/app/data
- ${SAFELINE_DIR}/logs/nginx:/app/log/nginx:z
- ${SAFELINE_DIR}/resources/sock:/app/sock
- /var/run:/app/run
ports:
- ${PANEL_APP_PORT_HTTP:-9443}:1443
- ${PANEL_APP_PORT_HTTP:-9443}:1443
healthcheck:
test: curl -k -f https://localhost:1443/api/open/health
environment:
- MGT_PG=postgres://safeline-ce:${POSTGRES_PASSWORD}@safeline-pg/safeline-ce?sslmode=disable
- MGT_PG=postgres://safeline-ce:${POSTGRES_PASSWORD}@safeline-pg/safeline-ce?sslmode=disable
logging:
options:
max-size: "100m"
@@ -35,12 +36,13 @@ services:
1panel-network:
ipv4_address: ${SUBNET_PREFIX}.235
image: chaitin/safeline-detector:latest
pull_policy: always
volumes:
- ${SAFELINE_DIR}/resources/detector:/resources/detector
- ${SAFELINE_DIR}/logs/detector:/logs/detector
- /etc/localtime:/etc/localtime:ro
- ${SAFELINE_DIR}/resources/detector:/resources/detector
- ${SAFELINE_DIR}/logs/detector:/logs/detector
- /etc/localtime:/etc/localtime:ro
environment:
- LOG_DIR=/logs/detector
- LOG_DIR=/logs/detector
labels:
createdBy: Apps
@@ -48,18 +50,19 @@ services:
container_name: ${CONTAINER_NAME}-tengine
restart: always
image: chaitin/safeline-tengine:latest
pull_policy: always
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/resolv.conf:/etc/resolv.conf:ro
- ${SAFELINE_DIR}/resources/nginx:/etc/nginx
- ${SAFELINE_DIR}/resources/detector:/resources/detector
- ${SAFELINE_DIR}/resources/chaos:/resources/chaos
- ${SAFELINE_DIR}/logs/nginx:/var/log/nginx:z
- ${SAFELINE_DIR}/resources/cache:/usr/local/nginx/cache
- ${SAFELINE_DIR}/resources/sock:/app/sock
- /etc/localtime:/etc/localtime:ro
- /etc/resolv.conf:/etc/resolv.conf:ro
- ${SAFELINE_DIR}/resources/nginx:/etc/nginx
- ${SAFELINE_DIR}/resources/detector:/resources/detector
- ${SAFELINE_DIR}/resources/chaos:/resources/chaos
- ${SAFELINE_DIR}/logs/nginx:/var/log/nginx:z
- ${SAFELINE_DIR}/resources/cache:/usr/local/nginx/cache
- ${SAFELINE_DIR}/resources/sock:/app/sock
environment:
- TCD_MGT_API=https://${SUBNET_PREFIX}.234:1443/api/open/publish/server
- SNSERVER_ADDR=${SUBNET_PREFIX}.235:8000
- TCD_MGT_API=https://${SUBNET_PREFIX}.234:1443/api/open/publish/server
- SNSERVER_ADDR=${SUBNET_PREFIX}.235:8000
ulimits:
nofile: 131072
network_mode: host
@@ -73,6 +76,7 @@ services:
1panel-network:
ipv4_address: ${SUBNET_PREFIX}.237
image: chaitin/safeline-luigi:latest
pull_policy: always
volumes:
- /etc/localtime:/etc/localtime:ro
- ${SAFELINE_DIR}/resources/luigi:/app/data
@@ -95,6 +99,7 @@ services:
1panel-network:
ipv4_address: ${SUBNET_PREFIX}.238
image: chaitin/safeline-fvm:latest
pull_policy: always
volumes:
- /etc/localtime:/etc/localtime:ro
logging:
@@ -112,11 +117,11 @@ services:
ipv4_address: ${SUBNET_PREFIX}.232
image: chaitin/safeline-postgres:15.2
volumes:
- ${SAFELINE_DIR}/resources/postgres/data:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
- ${SAFELINE_DIR}/resources/postgres/data:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
environment:
- POSTGRES_USER=safeline-ce
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=safeline-ce
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
command: [postgres, -c, max_connections=600]
healthcheck:
test: pg_isready -U safeline-ce -d safeline-ce
@@ -130,6 +135,7 @@ services:
1panel-network:
ipv4_address: ${SUBNET_PREFIX}.240
image: chaitin/safeline-chaos:latest
pull_policy: always
logging:
options:
max-size: "100m"
@@ -142,4 +148,4 @@ services:
networks:
1panel-network:
external: true
external: true