feat: added proxy and reverse nat

This commit is contained in:
2025-02-18 15:26:44 -05:00
parent 653b4a1e7f
commit 2e5f7821ec
11 changed files with 267 additions and 0 deletions

30
playbooks/deployment.yml Normal file
View File

@@ -0,0 +1,30 @@
- name: Deploy artifact to instance.
hosts: localhost
vars_files:
- ../config/proxy.json
- ../secrets/infrastructure.secret.json
vars:
ansible_connection: aws_ssm
ansible_python_interpreter: /usr/bin/python3
ansible_aws_ssm_plugin: "{{ ssm_plugin }}"
ansible_aws_ssm_bucket_name: "{{ image_bucket }}"
ansible_aws_ssm_instance_id: "{{ public_instance_id.value }}"
ansible_aws_ssm_region: "{{ aws_region }}"
ansible_aws_ssm_access_key_id: "{{ aws_access_key }}"
ansible_aws_ssm_secret_access_key: "{{ aws_secret_key }}"
tasks:
- name: Run image.
community.docker.docker_container:
name: server
image: "jc21/nginx-proxy-manager:latest"
state: started
recreate: true
restart_policy: always
ports: ["80:80", "443:443", "81:81", "22:22"]
env:
INITIAL_ADMIN_EMAIL: "{{ email }}"
INITIAL_ADMIN_PASSWORD: "{{ password }}"
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt