Try with postgres
This commit is contained in:
parent
db6ee8a383
commit
b521aff613
@ -15,27 +15,27 @@
|
|||||||
- id.autonomic.zone
|
- id.autonomic.zone
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Create mariadb database
|
- name: Create postgres database
|
||||||
shell: "dokku mariadb:create keycloak --password {{ db_passwd }} --root-password {{ root_db_passwd }}"
|
shell: "dokku postgres:create keycloak --password {{ db_passwd }} --root-password {{ root_db_passwd }}"
|
||||||
args:
|
args:
|
||||||
creates: /var/lib/dokku/services/mariadb/keycloak
|
creates: /var/lib/dokku/services/postgres/keycloak
|
||||||
|
|
||||||
- name: Specify mariadb docker volume mounts
|
- name: Specify postgres docker volume mounts
|
||||||
dokku_storage:
|
dokku_storage:
|
||||||
app: keycloak
|
app: keycloak
|
||||||
mounts:
|
mounts:
|
||||||
- /var/lib/dokku/services/mariadb/keycloak:/var/lib/mysql
|
- /var/lib/dokku/services/postgres/keycloak:/var/lib/mysql
|
||||||
|
|
||||||
- name: Configure the dokku app environment
|
- name: Configure the dokku app environment
|
||||||
dokku_config:
|
dokku_config:
|
||||||
app: keycloak
|
app: keycloak
|
||||||
restart: false
|
restart: false
|
||||||
config:
|
config:
|
||||||
DB_ADDR: "dokku-mariadb-keycloak"
|
DB_ADDR: "dokku-postgres-keycloak"
|
||||||
DB_DATABASE: "keycloak"
|
DB_DATABASE: "keycloak"
|
||||||
DB_PASSWORD: "{{ db_passwd }}"
|
DB_PASSWORD: "{{ db_passwd }}"
|
||||||
DB_USER: "mariadb" # https://github.com/dokku/dokku-mariadb/issues/89
|
DB_USER: "postgres" # https://github.com/dokku/dokku-mariadb/issues/89
|
||||||
DB_VENDOR: "mariadb"
|
DB_VENDOR: "postgres"
|
||||||
DOKKU_LETSENCRYPT_EMAIL: "{{ autonomic_admin_mail }}"
|
DOKKU_LETSENCRYPT_EMAIL: "{{ autonomic_admin_mail }}"
|
||||||
KEYCLOAK_PASSWORD: "{{ autonomic_admin_pass }}"
|
KEYCLOAK_PASSWORD: "{{ autonomic_admin_pass }}"
|
||||||
KEYCLOAK_USER: "{{ autonomic_admin_user }}"
|
KEYCLOAK_USER: "{{ autonomic_admin_user }}"
|
||||||
|
Reference in New Issue
Block a user