use variable to configure ports

networking
Jean-Marie Mineau 3 years ago
parent 05ad85b946
commit c89f72eba5

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

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

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

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

Loading…
Cancel
Save