From 7f93eb1b575e31401a0cdaa59b061cf6c6e5369f Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sun, 3 Nov 2024 16:15:49 +0100 Subject: [PATCH] Use host network for store-metrics-in-db container. --- .../role_deploy_store-metrics-in-db/tasks/main.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/roles/role_deploy_store-metrics-in-db/tasks/main.yml b/roles/role_deploy_store-metrics-in-db/tasks/main.yml index 71e2780..0b99014 100644 --- a/roles/role_deploy_store-metrics-in-db/tasks/main.yml +++ b/roles/role_deploy_store-metrics-in-db/tasks/main.yml @@ -52,24 +52,13 @@ failed_when: false become: true -- name: Create podman networks - containers.podman.podman_network: - name: "{{ item }}" - become: true - with_items: - - metricsnet - - name: Create store-metrics-in-db container containers.podman.podman_container: name: store-metrics-in-db image: "{{ private_registry_domain }}/store-metrics-in-db:22e20028fc" state: present network: - - mysqlnet - - metricsnet - ports: - - "127.0.0.1:3001:3001/tcp" - dns_search: "{{ SHORTNAME }}-sub.{{ DOMAIN }}" + - host env: FLASK_APP: api.py #FLASK_ENV: development