diff --git a/ansible/configuration.yml b/ansible/configuration.yml index 549be93..10e2ced 100644 --- a/ansible/configuration.yml +++ b/ansible/configuration.yml @@ -6,6 +6,7 @@ dayoff_port: "{{ base_port + 2 }}" homepage_port: "{{ base_port + 3 }}" netdata_port: "{{ base_port + 4 }}" + wiki_port: "{{ base_port + 5 }}" vars_files: - vars/vars.yml @@ -108,3 +109,20 @@ WEB_SERVER_PORT: '127.0.0.1:{{ dayoff_port }}' tags: - apps + + - import_role: + name: docker-app + vars: + username: wiki + extra_groups: + - docker + ssh_keys: + - '{{ lookup("file", "files/av_id_rsa.pub") }}' + env: + PROJECT_NAME: wiki + DOCKER_PREFIX: wiki + IMAGE_PREFIX: wiki + CONTAINER_PREFIX: wiki + WEB_SERVER_PORT: '127.0.0.1:{{ wiki_port }}' + tags: + - apps diff --git a/ansible/templates/Caddyfile.j2 b/ansible/templates/Caddyfile.j2 index 98a8fe7..05e7788 100644 --- a/ansible/templates/Caddyfile.j2 +++ b/ansible/templates/Caddyfile.j2 @@ -23,3 +23,10 @@ status.vakhrushev.me, :29999 { } } +wiki.vakhrushev.me { + tls anwinged@ya.ru + + reverse_proxy { + to 127.0.0.1:{{ wiki_port }} + } +}