refactor: split machine deploys from one-time secrets migration
Roles stay under the machine that runs them, CI applies only a known product, and the /opt/secrets move is a one-shot playbook instead of part of every core-secrets run. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
341538fba9
commit
9c692522fb
85 files changed
+537
-492
No files matched your search
@@ -0,0 +1,51 @@
|
||||
name: infisical
|
||||
|
||||
services:
|
||||
infisical-db:
|
||||
image: {{ infisical_postgres_image }}
|
||||
container_name: infisical-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: {{ infisical_postgres_user | to_json }}
|
||||
POSTGRES_PASSWORD: {{ infisical_postgres_password | to_json }}
|
||||
POSTGRES_DB: {{ infisical_postgres_db | to_json }}
|
||||
volumes:
|
||||
- {{ infisical_dir }}/db:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U {{ infisical_postgres_user }} -d {{ infisical_postgres_db }}"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 20s
|
||||
|
||||
infisical-redis:
|
||||
image: {{ infisical_redis_image }}
|
||||
container_name: infisical-redis
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- {{ infisical_dir }}/redis:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
start_period: 5s
|
||||
|
||||
infisical:
|
||||
image: {{ infisical_image }}
|
||||
container_name: infisical
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
infisical-db:
|
||||
condition: service_healthy
|
||||
infisical-redis:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
ENCRYPTION_KEY: {{ infisical_encryption_key | to_json }}
|
||||
AUTH_SECRET: {{ infisical_auth_secret | to_json }}
|
||||
DB_CONNECTION_URI: {{ ("postgres://" ~ infisical_postgres_user ~ ":" ~ (infisical_postgres_password | urlencode) ~ "@infisical-db:5432/" ~ infisical_postgres_db) | to_json }}
|
||||
REDIS_URL: redis://infisical-redis:6379
|
||||
SITE_URL: {{ infisical_site_url | to_json }}
|
||||
ports:
|
||||
- "{{ infisical_port }}:8080"
|
||||
Reference in new issue
Block a user