diff --git a/tasks/main.yml b/tasks/main.yml index c72ca00..a95d902 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -43,4 +43,3 @@ with_items: - docker-compose.yml notify: docker-compose-up - diff --git a/templates/docker-compose.yml b/templates/docker-compose.yml index 1283eab..580d2f7 100644 --- a/templates/docker-compose.yml +++ b/templates/docker-compose.yml @@ -5,6 +5,7 @@ services: image: {{ docker_etherpad_version }} restart: always environment: + NODE_ENV: production DB_TYPE: postgres DB_HOST: db DB_PORT: 5432 @@ -16,7 +17,8 @@ services: TRUST_PROXY: true DEFAULT_PAD_TEXT: "{{ docker_etherpad_default_pad_text }}" volumes: - - {{ docker_etherpad_data_dir }}/{{ docker_etherpad_service_id }}/node_modules:/opt/etherpad-lite/node_modules + - {{ docker_etherpad_data_dir }}/{{ docker_etherpad_service_id }}/plugin_packages:/opt/etherpad-lite/src/plugin_packages + - {{ docker_etherpad_data_dir }}/{{ docker_etherpad_service_id }}/var:/opt/etherpad-lite/var - {{ docker_etherpad_data_dir }}/{{ docker_etherpad_service_id }}/settings.json:/opt/etherpad-lite/settings.json labels: - "traefik.enable=true"