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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user