Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
8ca4f174a9 | |||
556aa6413e | |||
5b9d58b1a0 | |||
8f6a246eca |
6 changed files with 17 additions and 250 deletions
8
LICENSE
8
LICENSE
|
@ -1,6 +1,8 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2022 - 2023 simatec
|
||||
|
||||
Copyright (c) 2022 - 2024 Phil / hackmi.ch
|
||||
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -19,3 +21,7 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
|
||||
Original Project (Forked from):
|
||||
Copyright (c) 2022 - 2024 simatec (https://github.com/simatec/piler-docker)
|
234
README.md
234
README.md
|
@ -1,7 +1,4 @@
|
|||
# piler-docker
|
||||
|
||||
**************************************************************************************************************
|
||||
|
||||
# Easy to use Piler Image for Docker
|
||||
|
||||
### Mailpiler for Docker
|
||||
|
||||
|
@ -14,232 +11,7 @@ https://www.mailpiler.org/ or https://github.com/jsuto/piler
|
|||
*******************************************************************************************************
|
||||
|
||||
|
||||
### Installation Guide:
|
||||
|
||||
* Install Docker and dependencies
|
||||
|
||||
```
|
||||
apt install curl git -y
|
||||
```
|
||||
|
||||
```
|
||||
curl -sSL https://get.docker.com/ | CHANNEL=stable sh
|
||||
```
|
||||
```
|
||||
systemctl enable --now docker
|
||||
```
|
||||
|
||||
* Install Docker-Compose
|
||||
|
||||
```
|
||||
curl -L https://github.com/docker/compose/releases/download/v$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
|
||||
```
|
||||
```
|
||||
chmod +x /usr/local/bin/docker-compose
|
||||
```
|
||||
|
||||
* reboot your system
|
||||
|
||||
```
|
||||
reboot now
|
||||
```
|
||||
|
||||
* Clone repository
|
||||
|
||||
```
|
||||
cd /opt
|
||||
```
|
||||
```
|
||||
git clone https://git.hackmi.ch/Phil/piler-docker.git
|
||||
```
|
||||
```
|
||||
cd /opt/piler-docker
|
||||
```
|
||||
|
||||
|
||||
* start the Install
|
||||
|
||||
```
|
||||
bash install-piler.sh
|
||||
```
|
||||
|
||||
|
||||
Congratulations your Piler is installed...
|
||||
|
||||
If you have Let's Encrypt activated, you can reach the Piler at https://your-piler-domain
|
||||
|
||||
If Let's Encrypt is disabled, the Piler is at http://your-piler-domain or at http://your-local-IP
|
||||
|
||||
The Default Login is `admin@local` and the Password ist `pilerrocks`
|
||||
|
||||
|
||||
> After installation, any changes can be made in piler.conf at any time and the install script can then be run again.
|
||||
|
||||
|
||||
**********************************************************************************************************
|
||||
|
||||
|
||||
### Update Guide:
|
||||
|
||||
You can execute the following commands to update the containers.
|
||||
Here the current yml files are downloaded from Github and the containers are updated if necessary.
|
||||
|
||||
```
|
||||
cd /opt/piler-docker
|
||||
bash install-piler.sh
|
||||
```
|
||||
You will get a selection menu with the following options:
|
||||
|
||||
```
|
||||
1) Install-Piler
|
||||
2) Update-Piler
|
||||
```
|
||||
|
||||
* After a successful update, unused container images can be removed from the system with the following command:
|
||||
|
||||
```
|
||||
docker system prune
|
||||
```
|
||||
|
||||
**********************************************************************************************************
|
||||
|
||||
### Using the Piler on the command line
|
||||
|
||||
For use on the command line, we first log into the container.
|
||||
|
||||
```
|
||||
docker exec -it piler /bin/bash
|
||||
```
|
||||
|
||||
Next we switch to the user "piler"
|
||||
|
||||
```
|
||||
su piler
|
||||
```
|
||||
|
||||
To get write permissions, we switch to the /var/tmp folder
|
||||
|
||||
```
|
||||
cd /var/tmp
|
||||
```
|
||||
|
||||
Here you can now execute the functions of the Piler on the command line.
|
||||
Here are some examples:
|
||||
|
||||
```
|
||||
pilerimport -h
|
||||
crontab -l
|
||||
```
|
||||
|
||||
To leave the container on the console you have to execute 2x `exit`.
|
||||
|
||||
|
||||
**********************************************************************************************************
|
||||
|
||||
## Changelog
|
||||
|
||||
### 0.9.7 (14.06.2024)
|
||||
* (simatec) Fix Network on Update
|
||||
|
||||
### 0.9.7 (14.06.2024)
|
||||
* (simatec) Release 0.9.7
|
||||
|
||||
### 0.9.6 (11.06.2024)
|
||||
* (simatec) Hostname Fix
|
||||
|
||||
### 0.9.5 (10.06.2024)
|
||||
* (simatec) small fix
|
||||
|
||||
### 0.9.4 (05.06.2024)
|
||||
* (simatec) patch for Piler Update added
|
||||
|
||||
### 0.9.3 (01.06.2024)
|
||||
* (simatec) Piler v1.4.5 updated
|
||||
* (simatec) MariaDB v11.1.2 updated
|
||||
|
||||
### 0.9.2 (19.09.2023)
|
||||
* (simatec) Piler v1.4.4 updated
|
||||
|
||||
### 0.9.1 (23.01.2023)
|
||||
* (simatec) Piler updated
|
||||
|
||||
### 0.9.1 (23.01.2023)
|
||||
* (simatec) Piler Docker Hub added
|
||||
* (simatec) Fix Automatic Import
|
||||
|
||||
### 0.9.0 (23.01.2023)
|
||||
* (simatec) Piler Build added
|
||||
* (simatec) Piler Import Option added
|
||||
* (simatec) Fix Updater
|
||||
|
||||
### 0.8.3 (19.01.2023)
|
||||
* (simatec) Update himself added
|
||||
|
||||
### 0.8.2 (18.01.2023)
|
||||
* (simatec) docker, curl and git Check added
|
||||
* (simatec) Update Config added
|
||||
|
||||
### 0.8.1 (17.01.2023)
|
||||
* (simatec) Docker Compose Check added
|
||||
|
||||
### 0.8.0 (17.01.2023)
|
||||
* (simatec) Config-Menu for Installer added
|
||||
|
||||
### 0.7.0 (15.01.2023)
|
||||
* (simatec) New Volumes added
|
||||
* (simatec) Fix Installer
|
||||
|
||||
### 0.6.0 (18.12.2022)
|
||||
* (simatec) Update Installer
|
||||
* (simatec) update.sh added
|
||||
* (simatec) downgrade mariadb to v10.6
|
||||
|
||||
### 0.5.3 (17.12.2022)
|
||||
* (simatec) Installer Fix
|
||||
|
||||
### 0.5.2 (16.12.2022)
|
||||
* (simatec) update piler to v1.4.2
|
||||
|
||||
### 0.5.1 (15.12.2022)
|
||||
* (simatec) update piler to v1.4.1
|
||||
* (simatec) update mariadb to v10.9.4
|
||||
|
||||
### 0.5.0 (25.08.2022)
|
||||
* (simatec) update piler to 1.3.12
|
||||
* (simatec) update mariadb to 10.9.2
|
||||
|
||||
### 0.4.0 (20.04.2022)
|
||||
* (simatec) small fixes
|
||||
|
||||
### 0.3.0 (10.03.2022)
|
||||
* (simatec) purge option added to config
|
||||
|
||||
### 0.2.0 (09.03.2022)
|
||||
* (simatec) Let's Encrypt added
|
||||
|
||||
### 0.1.0 (08.03.2022)
|
||||
* (simatec) first beta
|
||||
|
||||
## License
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 - 2024 Phil / Sniffingpaint
|
||||
Copyright (c) 2022 - 2024 simatec
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
### 1.0.0 (14.06.2024)
|
||||
* Forked from github/simatec & Changed Installer on new arch
|
|
@ -3,8 +3,12 @@ FROM ubuntu:22.04
|
|||
ARG PACKAGE
|
||||
ARG TARGETARCH
|
||||
|
||||
EXPOSE 25/tcp
|
||||
EXPOSE 80/tcp
|
||||
EXPOSE 443/tcp
|
||||
|
||||
LABEL description="piler ubuntu jammy image" \
|
||||
maintainer="Janos SUTO, sj@acts.hu" \
|
||||
maintainer="Phil, phil@hackmi.ch" \
|
||||
package="${PACKAGE}"
|
||||
|
||||
ENV DEBIAN_FRONTEND="noninteractive" \
|
||||
|
@ -14,7 +18,6 @@ ENV DEBIAN_FRONTEND="noninteractive" \
|
|||
|
||||
COPY ${PACKAGE}_${TARGETARCH}.deb /
|
||||
|
||||
# hadolint ignore=DL3008
|
||||
RUN apt-get update && \
|
||||
apt-get -y --no-install-recommends install \
|
||||
wget openssl sysstat php8.1-cli php8.1-cgi php8.1-mysql php8.1-fpm php8.1-zip php8.1-ldap \
|
||||
|
@ -36,11 +39,6 @@ RUN apt-get update && \
|
|||
|
||||
VOLUME ["/etc/piler","/var/piler/store","/var/piler/manticore","/var/piler/imap","/var/piler/stat","/var/spool/cron/crontabs"]
|
||||
|
||||
EXPOSE 25/tcp
|
||||
EXPOSE 80/tcp
|
||||
EXPOSE 443/tcp
|
||||
|
||||
# Clean up APT when done.
|
||||
RUN apt clean && \
|
||||
apt autoremove && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
@ -49,7 +47,6 @@ RUN sed -i '/imklog/ s/^/#/' /etc/rsyslog.conf
|
|||
|
||||
COPY start.sh /start.sh
|
||||
|
||||
# chmod start.sh
|
||||
RUN chmod a+x /start.sh
|
||||
|
||||
CMD ["/start.sh"]
|
||||
|
|
|
@ -1,11 +1,3 @@
|
|||
# Piler Package
|
||||
|
||||
PILER_PACKAGE="piler_1.4.5-jammy-c13432f_amd64.deb"
|
||||
|
||||
# Piler Version
|
||||
|
||||
PILER_VERSION="1.4.5"
|
||||
|
||||
# MariaDB Version
|
||||
|
||||
MARIA_DB_VERSION="11.4"
|
|
@ -21,7 +21,7 @@ services:
|
|||
- MARIADB_DISABLE_UPGRADE_BACKUP=1
|
||||
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
||||
healthcheck:
|
||||
test: mariadb --user=${MYSQL_USER} --password=${MYSQL_PASSWORD} piler --execute "show tables"
|
||||
test: mysql --user=${MYSQL_USER} --password=${MYSQL_PASSWORD} piler --execute "show tables"
|
||||
interval: "60s"
|
||||
timeout: "5s"
|
||||
start_period: "15s"
|
||||
|
|
|
@ -49,7 +49,7 @@ services:
|
|||
- MARIADB_DISABLE_UPGRADE_BACKUP=1
|
||||
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
||||
healthcheck:
|
||||
test: mariadb --user=${MYSQL_USER} --password=${MYSQL_PASSWORD} piler --execute "show tables"
|
||||
test: mysql --user=${MYSQL_USER} --password=${MYSQL_PASSWORD} piler --execute "show tables"
|
||||
interval: "60s"
|
||||
timeout: "5s"
|
||||
start_period: "15s"
|
||||
|
|
Loading…
Reference in a new issue