diff --git a/ansible/deploy-dev.yaml b/ansible/deploy-dev.yaml index 65da1580..112a1d69 100644 --- a/ansible/deploy-dev.yaml +++ b/ansible/deploy-dev.yaml @@ -43,7 +43,7 @@ - name: Create postgres containers community.docker.docker_container: - name: "oasst-postgres-{{ stack_name }}-{{ item.name }}" + name: "oasst-{{ stack_name }}-postgres-{{ item.name }}" image: postgres:15 state: started restart_policy: always @@ -71,7 +71,7 @@ restart_policy: always network_mode: "oasst-{{ stack_name }}" env: - POSTGRES_HOST: "oasst-postgres-{{ stack_name }}-backend" + POSTGRES_HOST: "oasst-{{ stack_name }}-postgres-backend" REDIS_HOST: "oasst-{{ stack_name }}-redis" DEBUG_ALLOW_ANY_API_KEY: "true" DEBUG_USE_SEED_DATA: "true" @@ -95,8 +95,8 @@ env: ADMIN_USERS: "{{ lookup('ansible.builtin.env', 'WEB_ADMIN_USERS') }}" DATABASE_URL: - "postgres://postgres:postgres@oasst-postgres-{{ stack_name - }}-web/postgres" + "postgres://postgres:postgres@oasst-{{ stack_name + }}-postgres-web/postgres" DEBUG_LOGIN: "true" DISCORD_CLIENT_ID: "{{ lookup('ansible.builtin.env', 'WEB_DISCORD_CLIENT_ID') }}"