Hello Friends,
I recently set up a test oCIS installation using docker on an ubuntu vm.
I tried to setup outgoing emails using the following docker compose file:
version: "3.9"
networks:
owncloud-net:
external: false
services:
owncloud:
container_name: owncloud
image: owncloud/ocis:latest
restart: unless-stopped
entrypoint:
- /bin/sh
# run ocis init to initialize a configuration file with random secrets
# it will fail on subsequent runs, because the config file already exists
# therefore we ignore the error and then start the ocis server
command: ["-c", "ocis init || true; ocis server"]
networks:
- owncloud-net
ports:
- "9200:9200"
environment:
- NOTIFICATIONS_SMTP_HOST=stmp.host
- NOTIFICATIONS_SMTP_PORT=587
- NOTIFICATIONS_SMTP_AUTHENTICATION=login
- NOTIFICATIONS_SMTP_SENDER=sender-email
- NOTIFICATIONS_SMTP_USERNAME=username
- NOTIFICATIONS_SMTP_PASSWORD=pass
- NOTIFICATIONS_SMTP_ENCRYPTION=ssl
- DEMO_USERS=false
- PROXY_TLS=false
- OCIS_INSECURE=false # reverse proxy terminates ssl
- OCIS_URL=https://owncloud.example.com
- PROXY_HTTP_ADDR=0.0.0.0:9200
- OCIS_LOG_LEVEL=info
- OCIS_LOG_COLOR=true
- OCIS_LOG_PRETTY=true
- ADMIN_PASSWORD=pass
volumes:
- ./ocis-config:/etc/ocis
-./ocis-data:/var/lib/ocis
After initializing the server i see no indication of errors in the docker logs.
When searching for the notification configuration the only thing i can find is
in ./ocis-config/ocis.yaml
...
notifications:
notifications:
events:
tls_insecure: false
I am not sure where i am going wrong and i can’t find a way to test sending an email out (I am assuming it isn’t implemented yet in the webgui).
Should I edit the yaml file manually to achieve this ?
Should there be a separate yaml file for this configuration?
Any guidance would be appreciated.