Use http_port var
This commit is contained in:
parent
0f3e3f23e5
commit
f263c96fcf
@ -12,7 +12,7 @@
|
||||
dokku_ports:
|
||||
app: keycloak
|
||||
mappings:
|
||||
- "http:80:8080"
|
||||
- "http:80:{{ http_port }}"
|
||||
state: present
|
||||
|
||||
- name: Setup LE certificates
|
||||
@ -29,19 +29,19 @@
|
||||
dokku_storage:
|
||||
app: keycloak
|
||||
mounts:
|
||||
- "/home/dokku/keycloak/letsencrypt/certs/current/key.pem:/etc/x509/https/tls.key"
|
||||
- "/home/dokku/keycloak/letsencrypt/certs/current/cert.pem:/etc/x509/https/tls.crt"
|
||||
- /home/dokku/keycloak/letsencrypt/certs/current/key.pem:/etc/x509/https/tls.key
|
||||
- /home/dokku/keycloak/letsencrypt/certs/current/cert.pem:/etc/x509/https/tls.crt
|
||||
|
||||
- name: Remove automatically configured ports
|
||||
dokku_ports:
|
||||
app: keycloak
|
||||
mappings:
|
||||
- "http:8080:8080"
|
||||
- "http:{{ http_port }}:{{ http_port }}"
|
||||
state: absent
|
||||
|
||||
- name: Set HTTP 443 port
|
||||
dokku_ports:
|
||||
app: keycloak
|
||||
mappings:
|
||||
- "https:443:8080"
|
||||
- "https:443:{{ http_port }}"
|
||||
state: present
|
||||
|
@ -16,7 +16,13 @@
|
||||
state: present
|
||||
|
||||
- name: Create mariadb database
|
||||
shell: "dokku mariadb:create keycloak --password {{ db_passwd }} --root-password {{ root_db_passwd }}"
|
||||
shell: "
|
||||
dokku
|
||||
mariadb:create
|
||||
keycloak
|
||||
--password {{ db_passwd }}
|
||||
--root-password {{ root_db_passwd }}
|
||||
"
|
||||
args:
|
||||
creates: /var/lib/dokku/services/mariadb/keycloak
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
---
|
||||
autonomic_admin_mail: helo@autonomic.zone
|
||||
autonomic_admin_user: autonomic
|
||||
http_port: "8080"
|
||||
|
Reference in New Issue
Block a user