Giter VIP home page Giter VIP logo

iredmail-docker's Introduction

iRedMail-docker

The dockerisation is not yet complete. If you want to contribute and know how to, please do! If you have questions regarding the method, or would like to suggest something, file an issue on this repo.

Buildling

After cloing the repo, run pre-build.sh to get iRedMail and enable componentalization in its installation scripts.

Build takes the input from build-time environment variables, defined in docker-compose.

During the build, we imitate the 'mysql' and 'service' commands to capture their output and execute it on first run of the container (TODO).

How?

The pre-build script hooks the official installer so it can run in the build process, switching on or off specific parts of the installer. On top of that I'm caching the mysql queries executed during the installation so they can be applied once an instance is up. It was quite a bit of work to get here, but now what's left is putting it all together - those small things like making sure the services talk to each other and not localhost, plus making a wrapper scripts that will boot up the necessary process.

TODO

  • CMD command that starts the each service once the container is ready
  • Move the hardcoded passwords (in util/config) to variables in docker-compose.yml file
  • Write a simple script that builds a docker-compose override file given a set of inputs (e.g. domain name)
  • Make the services refer to each others by links/sockets, not localhost (possibly bind globally, not 127.0.0.1)
  • Add LetsEncrypt for free, valid SSL certificates

References and alternatives

iredmail-docker's People

Contributors

niieani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

iredmail-docker's Issues

Nginx 502

So, ive installed and set up the docker container on my main 16.04 lts server and it seems that the uwsgi servers wont start. these are the errors i get when starting the docker container:

2020-10-24 09:03:45,146 INFO Included extra file "/etc/supervisor.d/amavisd.conf" during parsing
2020-10-24 09:03:45,146 INFO Included extra file "/etc/supervisor.d/clamav.conf" during parsing
2020-10-24 09:03:45,147 INFO Included extra file "/etc/supervisor.d/cron.conf" during parsing
2020-10-24 09:03:45,147 INFO Included extra file "/etc/supervisor.d/dovecot.conf" during parsing
2020-10-24 09:03:45,148 INFO Included extra file "/etc/supervisor.d/fail2ban.conf" during parsing
2020-10-24 09:03:45,148 INFO Included extra file "/etc/supervisor.d/iredadmin.conf" during parsing
2020-10-24 09:03:45,148 INFO Included extra file "/etc/supervisor.d/iredapd.conf" during parsing
2020-10-24 09:03:45,149 INFO Included extra file "/etc/supervisor.d/mariadb.conf" during parsing
2020-10-24 09:03:45,149 INFO Included extra file "/etc/supervisor.d/mlmmjadmin.conf" during parsing
2020-10-24 09:03:45,149 INFO Included extra file "/etc/supervisor.d/nginx.conf" during parsing
2020-10-24 09:03:45,150 INFO Included extra file "/etc/supervisor.d/phpfpm.conf" during parsing
2020-10-24 09:03:45,150 INFO Included extra file "/etc/supervisor.d/postfix.conf" during parsing
2020-10-24 09:03:45,150 INFO Included extra file "/etc/supervisor.d/rsyslog.conf" during parsing
2020-10-24 09:03:45,151 INFO Set uid to user 0 succeeded
2020-10-24 09:03:45,164 INFO RPC interface 'supervisor' initialized
2020-10-24 09:03:45,165 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2020-10-24 09:03:45,166 INFO supervisord started with pid 1
2020-10-24 09:03:46,169 INFO spawned: 'rsyslog' with pid 806
2020-10-24 09:03:46,171 INFO spawned: 'cron' with pid 807
2020-10-24 09:03:46,177 INFO spawned: 'mariadb' with pid 808
2020-10-24 09:03:46,183 INFO spawned: 'clamav' with pid 809
2020-10-24 09:03:46,196 INFO spawned: 'dovecot' with pid 810
2020-10-24 09:03:46,202 INFO spawnerr: can't find command '/usr/bin/uwsgi'
2020-10-24 09:03:46,204 INFO spawned: 'iredapd' with pid 811
2020-10-24 09:03:46,211 INFO spawnerr: can't find command '/usr/bin/uwsgi'
2020-10-24 09:03:46,219 INFO spawned: 'amavisd' with pid 812
2020-10-24 09:03:46,239 INFO spawned: 'phpfpm' with pid 816
2020-10-24 09:03:46,248 INFO spawned: 'nginx' with pid 818
2020-10-24 09:03:46,268 INFO spawned: 'postfix' with pid 819
2020-10-24 09:03:46,285 INFO spawned: 'fail2ban' with pid 820
2020-10-24 09:03:46,313 INFO success: rsyslog entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-10-24 09:03:46,316 INFO success: cron entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-10-24 09:03:46,321 INFO success: mariadb entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-10-24 09:03:46,325 INFO success: clamav entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-10-24 09:03:46,325 INFO success: dovecot entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-10-24 09:03:46,325 INFO success: iredapd entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-10-24 09:03:46,326 INFO success: amavisd entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-10-24 09:03:46,326 INFO success: phpfpm entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-10-24 09:03:46,327 INFO success: nginx entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-10-24 09:03:46,328 INFO success: postfix entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-10-24 09:03:46,328 INFO success: fail2ban entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-10-24 09:03:47,645 INFO spawnerr: can't find command '/usr/bin/uwsgi'
2020-10-24 09:03:47,646 INFO spawnerr: can't find command '/usr/bin/uwsgi'
2020-10-24 09:03:50,024 INFO spawnerr: can't find command '/usr/bin/uwsgi'
2020-10-24 09:03:50,025 INFO spawnerr: can't find command '/usr/bin/uwsgi'
2020-10-24 09:03:52,029 INFO reaped unknown pid 592 (exit status 0)
2020-10-24 09:03:53,031 INFO spawnerr: can't find command '/usr/bin/uwsgi'
2020-10-24 09:03:53,031 INFO gave up: iredadmin entered FATAL state, too many start retries too quickly
2020-10-24 09:03:53,032 INFO spawnerr: can't find command '/usr/bin/uwsgi'
2020-10-24 09:03:53,032 INFO gave up: mlmmjadmin entered FATAL state, too many start retries too quickly

and this is my nginx log from the contiainer:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.