Answer the question
In order to leave comments, you need to log in
What is the best way to get out of the naming situation in ansible deploy?
For deployment, there is ansible playbook.yml
- name: Start Docker container api
docker_container:
name: "api_{{ target_host }}"
image: "{{ api_artifact }}"
recreate: true
volumes:
- "{{ app_dir }}:/app/storage"
exposed_ports:
- 5000
env:
HTTP_PROXY: "{{ HTTP_PROXY }}"
HTTPS_PROXY: "{{ HTTPS_PROXY }}"
LDAP_HOST: "{{ LDAP_HOST }}"
networks:
- name: "{{ project_name }}_network"
aliases:
- backend
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question