mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2026-03-10 05:01:44 +01:00
add: ip-gate service to container vpn
This commit is contained in:
@@ -60,20 +60,29 @@
|
||||
|
||||
- name: Create compose directories
|
||||
file:
|
||||
name: "/opt/certificate-manager/"
|
||||
name: "/opt/{{ item }}/"
|
||||
state: directory
|
||||
with_items:
|
||||
- certificate-manager
|
||||
- atlantis-ip-gate
|
||||
|
||||
- name: Copy compose templates
|
||||
template:
|
||||
src: "certificate-manager.yaml"
|
||||
dest: "/opt/certificate-manager/"
|
||||
src: "{{ item }}.yaml"
|
||||
dest: "/opt/{{ item }}/"
|
||||
with_items:
|
||||
- certificate-manager
|
||||
- atlantis-ip-gate
|
||||
|
||||
- name: Deploy compose templates
|
||||
community.docker.docker_compose:
|
||||
project_src: "/opt/certificate-manager/"
|
||||
project_src: "/opt/{{ item }}/"
|
||||
pull: true
|
||||
files:
|
||||
- "certificate-manager.yaml"
|
||||
- "{{ item }}.yaml"
|
||||
with_items:
|
||||
- certificate-manager
|
||||
- atlantis-ip-gate
|
||||
|
||||
# setup oauth proxy #
|
||||
- name: include services ports
|
||||
|
||||
23
roles/openvpn/templates/atlantis-ip-gate.yaml
Normal file
23
roles/openvpn/templates/atlantis-ip-gate.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
version: '3'
|
||||
services:
|
||||
flask:
|
||||
restart: always
|
||||
image: harbor-registry.atlantishq.de/atlantishq/atlantis-ip-gate-listener:latest
|
||||
ports:
|
||||
- 8001:5000
|
||||
volumes:
|
||||
- vpn-gate-data:/app/data/
|
||||
environment:
|
||||
- APP_SECRET=jeanswochenendegeschichte
|
||||
nginx:
|
||||
restart: always
|
||||
image: harbor-registry.atlantishq.de/atlantishq/atlantis-ip-gate-nginx:latest
|
||||
volumes:
|
||||
- vpn-gate-data:/data/
|
||||
ports:
|
||||
- 8000:8000
|
||||
environment:
|
||||
- TARGET=http://172.16.1.15:8096
|
||||
|
||||
volumes:
|
||||
vpn-gate-data:
|
||||
Reference in New Issue
Block a user