Fix CodiMD vars
This commit is contained in:
parent
9d08ae2ff1
commit
49908b833f
|
@ -11,7 +11,7 @@ usage () {
|
|||
BASE_CMD="ansible-playbook playbook.yml --ask-vault-pass"
|
||||
|
||||
if [ "$1" = "--vagrant" ]; then
|
||||
BASE_CMD="$BASE_CMD --inventory=vagrant_host"
|
||||
BASE_CMD="$BASE_CMD --verbose --inventory=vagrant_host"
|
||||
shift
|
||||
fi
|
||||
|
||||
|
|
|
@ -1,17 +1,15 @@
|
|||
---
|
||||
|
||||
- name: codimd network
|
||||
docker_network:
|
||||
name: codimd
|
||||
|
||||
- name: create codimd volume folders
|
||||
file:
|
||||
name: "{{ codimd.volume_folder }}/{{ volume }}"
|
||||
name: "{{ services.codimd.volume_folder }}/{{ volume }}"
|
||||
state: directory
|
||||
loop:
|
||||
- "db"
|
||||
- "codimd/uploads"
|
||||
|
||||
loop_control:
|
||||
loop_var: volume
|
||||
|
||||
|
@ -24,7 +22,7 @@
|
|||
networks:
|
||||
- name: codimd
|
||||
volumes:
|
||||
- "{{ codimd.volume_folder }}/db:/var/lib/postgresql/data"
|
||||
- "{{ services.codimd.volume_folder }}/db:/var/lib/postgresql/data"
|
||||
env:
|
||||
POSTGRES_USER: "codimd"
|
||||
POSTGRES_PASSWORD: "{{ postgres_passwords.codimd }}"
|
||||
|
@ -39,8 +37,7 @@
|
|||
- name: ldap
|
||||
- name: external_services
|
||||
volumes:
|
||||
- "{{ codimd.volume_folder }}/codimd/uploads:/codimd/public/uploads"
|
||||
|
||||
- "{{ services.codimd.volume_folder }}/codimd/uploads:/codimd/public/uploads"
|
||||
env:
|
||||
CMD_DB_URL: "postgres://codimd:{{ postgres_passwords.codimd }}@codimd_db:5432/codimd"
|
||||
CMD_ALLOW_EMAIL_REGISTER: "False"
|
||||
|
@ -52,6 +49,6 @@
|
|||
CMD_LDAP_SEARCHBASE: "dc=data,dc=coop"
|
||||
CMD_LDAP_SEARCHFILTER: "(&(uid={{ '{{username}}' }})(objectClass=inetOrgPerson))"
|
||||
CMD_USECDN: "false"
|
||||
VIRTUAL_HOST: "{{ codimd.domain }}"
|
||||
LETSENCRYPT_HOST: "{{ codimd.domain }}"
|
||||
VIRTUAL_HOST: "{{ services.codimd.domain }}"
|
||||
LETSENCRYPT_HOST: "{{ services.codimd.domain }}"
|
||||
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
||||
|
|
Loading…
Reference in a new issue