diff --git a/ansible/deploy.yml b/ansible/deploy.yml index 69d69de..42bb1e3 100644 --- a/ansible/deploy.yml +++ b/ansible/deploy.yml @@ -32,7 +32,7 @@ mode: '0600' - name: Download nginx - shell: wget -O /opt/infra/nginx.yaml "{{ URL for docker-compose nginx }}" + shell: wget -O /opt/infra/nginx.yaml "{{ URL for docker-compose nginx }}" #перенести докер в pipeline и выкачать страницы для запуска с созданием loacations в nginx args: creates: /opt/infra/nginx.yaml diff --git a/docker/nginx/nginx.yaml b/docker/nginx/nginx.yaml new file mode 100644 index 0000000..5bb32be --- /dev/null +++ b/docker/nginx/nginx.yaml @@ -0,0 +1,8 @@ +web: + image: nginx + volumes: + - ./templates:/etc/nginx/templates + - ./confs:/etc/nginx/conf.d + ports: + - "80:80" + - "443:443" \ No newline at end of file