Comments (17)
docker run
-d
--name='mailrise'
--net='bridge'
-e TZ="America/Chicago"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="Tower"
-e HOST_CONTAINERNAME="mailrise"
-l net.unraid.docker.managed=dockerman
-p '8025:8025/tcp'
-v '/mnt/user/appdata/mailrise/':'/etc/mailrise':'ro' 'yoryan/mailrise:stable' /etc/mailrise/config.yml
from mailrise.
Awesome! Glad it worked out for you.
from mailrise.
Could I get some information on the hardware/software stack of the host?
You can try the -buster images. They might be better behaved with older/more obscure versions of Docker.
from mailrise.
from mailrise.
Are you running this via docker run or compose? Can you share the command/compose you're using?
Is the error inside the container or the host system?
from mailrise.
I've only tried with docker run so far. unRAID uses a form of templating for docker run so there are certain envs it adds. I haven't mapped any ports yet, but of course, those will be needed once I get the container to run.
docker run
-d
--name='Mailrise'
--net='bridge'
-e TZ="America/Chicago"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="Tower"
-e HOST_CONTAINERNAME="Mailrise"
-l net.unraid.docker.managed=dockerman
-v '/mnt/user/appdata/mailrise/':'/etc':'rw' 'yoryan/mailrise:stable'
The error is inside the container. It stops running right after starting it.
I plan to try docker-compose later today when I get some time.
from mailrise.
from mailrise.
Nor am I!
from mailrise.
from mailrise.
I tried that yesterday and got
mailrise: error: argument CONFIG: can't open '/etc/mailrise.conf': [Errno 2] No such file or directory: '/etc/mailrise.conf'
But you might be on to something because that error looks like it's coming from the mailrise service, which means it's running.
@YoRyan would it be possible for the dockerfile to direct the config file to a dedicated directory (/config rather than /etc) so the whole directory can be passed through? Rather than passing just a file through. This seems to be the norm for most containers that I use. I can't recall using any that want individual files passed from the host although I'm sure there are others.
from mailrise.
With compose I'm getting
CRITICAL:mailrise.skeleton:Error loading configuration file: 'configs' node not a mapping
This is pretty bizarre. I'm definitely not as familiar with compose so I very well could have missed something simple. Here's my compose file:
version: '2.1'
services:
mailrise:
container_name: mailrise
# restart: unless-stopped
image: yoryan/mailrise:stable
ports:
- 8025:8025
environment:
- PUID=1000
- PGID=1000
volumes:
- /mnt/user/appdata/mailrise/mailrise.conf:/etc/mailrise.conf
from mailrise.
from mailrise.
I just threw in a sample config. I haven't really wrapped my head around how the config works.
#
# Minimal Configuration Example
#
# Define your URLs
urls:
# Either on-line each entry like this:
- json://localhost
- xml://localhost
# Or add a colon to the end of the URL where you can optionally provide
# over-ride entries. One of the most likely entry to be used here
# is the tag entry. This gets extended to the global tag (if defined)
# above
- windows://:
# 'tag' is a special keyword that allows you to associate tags with your
# services:
- tag: desktop
You suppose that's the issue?
from mailrise.
You need to start the mailrise.conf with configs:
, like below
configs:
pve:
urls:
- discord://webhook_stuff
smtp:
auth:
basic:
username: password
I think you also need a name above urls:
in your config.
In my config, if I send an email to pve.mailrise.xyz, it will then forward it to my discord webhook and ultimately my discord server. If I wanted to send it to another address like other_server.mailrise.xyz, I'd have to configure another section along with whatever service I wanted to send it to.
other_server:
urls:
- discord://other_webhook_stuff
from mailrise.
@YoRyan would it be possible for the dockerfile to direct the config file to a dedicated directory (/config rather than /etc) so the whole directory can be passed through? Rather than passing just a file through. This seems to be the norm for most containers that I use. I can't recall using any that want individual files passed from the host although I'm sure there are others.
I did not know it was impossible to pass through a file in Unraid. To change the configuration file path, you need only pass a custom argument to the container (the Dockerfile default is /etc/mailrise.conf
). With the CLI, any arguments at the end of docker run
after the yoryan/mailrise
argument are passed to the container. Not sure how this is done in Unraid's UI? It should look something like:
docker run
-d
--name='Mailrise'
-v '/mnt/user/appdata/mailrise/':'/etc/mailrise':'ro' 'yoryan/mailrise:stable'
'/etc/mailrise/myconfig.yml'
Another user encountered your error, also on Unraid, probably because of this very limitation (#15). This may be worth adding to the Readme.
from mailrise.
Poking around Unraid videos (I don't see it anywhere in their documentation) it looks like you could just add '/etc/mailrise/myconfig.yml'
to the Post Arguments field in Unraid's advanced view.
from mailrise.
Those both seem like good solutions. I'll give both a try sometime this week and let you know!
from mailrise.
Related Issues (20)
- Unable to start docker container HOT 1
- STARTTLS issue with aiosmtpd 1.4.2 HOT 1
- Advertise auth support in EHLO HOT 3
- Session.login_data is deprecated HOT 4
- TLS disables authentication HOT 9
- Allow environment variable configuration to be passed to configuration file HOT 2
- Handle docker signals HOT 3
- Publish images to GHCR HOT 4
- TLS with traefik not working HOT 6
- Allow use of variables in urls HOT 2
- ghcr.io image cannot be pulled by version HOT 1
- Unable to get container working HOT 10
- Custom Discord Avatar with Alert
- Individual recipients based on emails usernames? HOT 1
- Container crashes / won't start: "No module named 'mailrise'"
- Feature request: Filtering the text in the body HOT 5
- Mailrise service fails to start HOT 1
- How to use Traefik with TLS + Auth HOT 2
- Specify log level via config
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailrise.