chore(compose): move agent_files to docker vol

This commit is contained in:
tigattack
2025-09-24 21:01:20 +01:00
parent b7ce2a3f54
commit 03d6ebb43a
3 changed files with 5 additions and 7 deletions

2
.gitignore vendored
View File

@@ -145,4 +145,4 @@ setup-installer-site.sh
install-server.* install-server.*
notify-clients-upgrade.sh notify-clients-upgrade.sh
debug-agent.sh debug-agent.sh
docker/agents docker/compose_dev_data

View File

@@ -7,7 +7,7 @@ services:
POSTGRES_USER: patchmon_user POSTGRES_USER: patchmon_user
POSTGRES_PASSWORD: INSECURE_REPLACE_ME_PLEASE_INSECURE POSTGRES_PASSWORD: INSECURE_REPLACE_ME_PLEASE_INSECURE
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - ./compose_dev_data/db:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U patchmon_user -d patchmon_db"] test: ["CMD-SHELL", "pg_isready -U patchmon_user -d patchmon_db"]
interval: 10s interval: 10s
@@ -31,7 +31,7 @@ services:
RATE_LIMIT_WINDOW_MS: 900000 RATE_LIMIT_WINDOW_MS: 900000
RATE_LIMIT_MAX: 100 RATE_LIMIT_MAX: 100
volumes: volumes:
- ./agents:/app/agents - ./compose_dev_data/agents:/app/agents
depends_on: depends_on:
database: database:
condition: service_healthy condition: service_healthy
@@ -49,6 +49,3 @@ services:
depends_on: depends_on:
backend: backend:
condition: service_healthy condition: service_healthy
volumes:
postgres_data:

View File

@@ -29,7 +29,7 @@ services:
RATE_LIMIT_WINDOW_MS: 900000 RATE_LIMIT_WINDOW_MS: 900000
RATE_LIMIT_MAX: 100 RATE_LIMIT_MAX: 100
volumes: volumes:
- ./agents:/app/agents - agent_files:/app/agents
depends_on: depends_on:
database: database:
condition: service_healthy condition: service_healthy
@@ -45,3 +45,4 @@ services:
volumes: volumes:
postgres_data: postgres_data:
agent_files: