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

21 lines
453 B
Plaintext
Raw Normal View History

# THIS FILE IS MANAGED BY ANSIBLE
2023-11-08 21:30:41 +00:00
# code: language=ansible-jinja
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