Use host network for store-metrics-in-db container.
This commit is contained in:
parent
26b35467ec
commit
7f93eb1b57
@ -52,24 +52,13 @@
|
|||||||
failed_when: false
|
failed_when: false
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Create podman networks
|
|
||||||
containers.podman.podman_network:
|
|
||||||
name: "{{ item }}"
|
|
||||||
become: true
|
|
||||||
with_items:
|
|
||||||
- metricsnet
|
|
||||||
|
|
||||||
- name: Create store-metrics-in-db container
|
- name: Create store-metrics-in-db container
|
||||||
containers.podman.podman_container:
|
containers.podman.podman_container:
|
||||||
name: store-metrics-in-db
|
name: store-metrics-in-db
|
||||||
image: "{{ private_registry_domain }}/store-metrics-in-db:22e20028fc"
|
image: "{{ private_registry_domain }}/store-metrics-in-db:22e20028fc"
|
||||||
state: present
|
state: present
|
||||||
network:
|
network:
|
||||||
- mysqlnet
|
- host
|
||||||
- metricsnet
|
|
||||||
ports:
|
|
||||||
- "127.0.0.1:3001:3001/tcp"
|
|
||||||
dns_search: "{{ SHORTNAME }}-sub.{{ DOMAIN }}"
|
|
||||||
env:
|
env:
|
||||||
FLASK_APP: api.py
|
FLASK_APP: api.py
|
||||||
#FLASK_ENV: development
|
#FLASK_ENV: development
|
||||||
|
Loading…
Reference in New Issue
Block a user