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