use variable to configure ports

This commit is contained in:
Jean-Marie Mineau 2021-01-27 00:32:51 +01:00
parent 05ad85b946
commit c89f72eba5
4 changed files with 8 additions and 4 deletions

View file

@ -0,0 +1,3 @@
---
gitea_ssh_port: 2222
gitea_https_port: 8443

View file

@ -0,0 +1,2 @@
---
keycloak_https_port: 7443

View file

@ -25,8 +25,8 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "443:3000"
- "222:22"
- {{ gitea_https_port }}:3000
- {{ gitea_ssh_port }}:22
depends_on:
- db

View file

@ -12,5 +12,4 @@ services:
volumes:
- ./certificates:/etc/x509/https
ports:
- 80:8080
- 443:8443
- {{ keycloak_https_port }}:8443