homelab/roles/nginx/tasks/main.yml

13 lines
265 B
YAML

- name: run nginx container
docker_container:
name: 'nginx'
image: nginx
volumes:
- "{{ nginx_confd_folder }}:/etc/nginx/conf.d"
ports:
- "80:80"
env:
NGINX_HOST: "{{ base_domain }}"
NGINX_PORT: '80'
state: started