From 9f51ce02d668fb98110a2a1a64af2534a1c3a1d6 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Fri, 29 Mar 2024 15:57:07 +0000 Subject: [PATCH] Fix #50: Remove custom network *completely* from Infisical docker-compose (#52) Reviewed-on: https://git.koval.net/cyclane/kovalhome/pulls/52 --- infra/secrets/0003_infiscal_playbook.yaml | 2 ++ infra/secrets/infisical/docker-compose.yml | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/infra/secrets/0003_infiscal_playbook.yaml b/infra/secrets/0003_infiscal_playbook.yaml index a02d149..b2e11eb 100644 --- a/infra/secrets/0003_infiscal_playbook.yaml +++ b/infra/secrets/0003_infiscal_playbook.yaml @@ -16,6 +16,7 @@ args: chdir: "{{ user.home }}/{{ app }}" ignore_errors: true + - name: Copy project ansible.builtin.copy: src: "./{{ app }}" @@ -36,6 +37,7 @@ path: "{{ user.home }}/{{ app }}/.env" regexp: "SMTP_PASSWORD_VALUE" replace: "{{ lookup('ansible.builtin.env', 'SMTP_PASSWORD') }}" + - name: Docker compose up -d ansible.builtin.command: docker compose up -d args: diff --git a/infra/secrets/infisical/docker-compose.yml b/infra/secrets/infisical/docker-compose.yml index 24fcdcc..973d10b 100644 --- a/infra/secrets/infisical/docker-compose.yml +++ b/infra/secrets/infisical/docker-compose.yml @@ -9,8 +9,6 @@ services: env_file: .env command: npm run migration:latest pull_policy: always - networks: - - infisical backend: restart: unless-stopped @@ -45,8 +43,6 @@ services: env_file: .env volumes: - /mnt/nvme/pg_data:/var/lib/postgresql/data - networks: - - infisical healthcheck: test: "pg_isready --username=${POSTGRES_USER} && psql --username=${POSTGRES_USER} --list" interval: 5s