use variable to configure ports
This commit is contained in:
parent
05ad85b946
commit
c89f72eba5
4 changed files with 8 additions and 4 deletions
3
group_vars/all/install_gitea
Normal file
3
group_vars/all/install_gitea
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
gitea_ssh_port: 2222
|
||||
gitea_https_port: 8443
|
2
group_vars/all/install_keycloak
Normal file
2
group_vars/all/install_keycloak
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
keycloak_https_port: 7443
|
|
@ -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
|
||||
|
||||
|
|
|
@ -12,5 +12,4 @@ services:
|
|||
volumes:
|
||||
- ./certificates:/etc/x509/https
|
||||
ports:
|
||||
- 80:8080
|
||||
- 443:8443
|
||||
- {{ keycloak_https_port }}:8443
|
||||
|
|
Loading…
Reference in a new issue