From b22677445736d9a97c67a51b5424b2e4b690add2 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Sat, 12 Sep 2020 00:32:34 -0400 Subject: [PATCH] Expose SSH on gitea --- roles/gitea/defaults/main.yml | 1 + roles/gitea/tasks/main.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/gitea/defaults/main.yml b/roles/gitea/defaults/main.yml index 6151574..6e62152 100644 --- a/roles/gitea/defaults/main.yml +++ b/roles/gitea/defaults/main.yml @@ -1,6 +1,7 @@ # container settings gitea_name: gitea gitea_dbname: "{{ gitea_name }}-db" +gitea_ports: "222:22" # database settings gitea_dbuser: "{{ gitea_dbname }}" diff --git a/roles/gitea/tasks/main.yml b/roles/gitea/tasks/main.yml index eeb16ac..0ba7c84 100644 --- a/roles/gitea/tasks/main.yml +++ b/roles/gitea/tasks/main.yml @@ -25,6 +25,7 @@ state: started restart_policy: always networks_cli_compatible: true + ports: "{{ gitea_ports }}" networks: - name: "{{ gitea_name }}" - name: traefik