lab-ansible/roles/apps/templates/compose-files/nginx.yml.j2

21 lines
457 B
Plaintext
Raw Normal View History

2023-12-29 18:07:08 +00:00
{# code: language=ansible-jinja #}
# THIS FILE IS MANAGED BY ANSIBLE
2023-11-08 21:30:41 +00:00
version: "3.8"
services:
web:
image: nginx:{{ apps_vars.nginx.version }}
restart: always
networks:
2023-11-12 22:16:53 +00:00
{{ apps_shared_docker_network }}:
ipv4_address: {{ apps_vars.nginx.docker_ipv4 }}
2023-11-08 21:30:41 +00:00
ports:
- {{ internal_ipv4 }}:8080:8080/tcp
2023-11-08 21:30:41 +00:00
volumes:
- "./data/conf.d:/etc/nginx/conf.d:ro"
networks:
{{ apps_shared_docker_network }}:
external: true