Public Repository

Last pushed: 10 months ago
Short Description
phpList is Open Source software for sending email newsletters.
Full Description

PHPListDocker

The PHPList installed on CentOS 7.

Pull image

docker pull openmedicus/phplist

Using config file on host

mkdir -p /www/phplist/lists/config

Copy "config.php" and "config_extended.php" to "/www/phplist/lists/config/" and make changes

SELinux:

chcon -Rt svirt_sandbox_file_t /www/
docker run --name=phplist -p 8080:80 -v /www/phplist/lists/config:/var/www/html/public_html/lists/config:rw -d openmedicus/phplist

Systemd

/etc/systemd/system/docker-phplist.service

[Unit]
Description=PHPList container
Requires=docker.service
After=docker.service

[Service]
Restart=always
ExecStart=/usr/bin/docker run --name=phplist -p 8080:80 -v /www/phplist/lists/config:/var/www/html/public_html/lists/config:rw openmedicus/phplist
ExecStop=/usr/bin/docker stop -t 2 phplist
ExecStopPost=/usr/bin/docker rm -f phplist

[Install]
WantedBy=default.target

Now reload systemd, enable and start

# systemctl daemon-reload
# systemctl enable docker-phplist
# systemctl start docker-phplist

Nginx

upstream phplist.local {
    server 172.17.0.1:8080;
}

server {
        listen 80;
        server_name phplist.test.com;
        access_log /var/log/nginx/phplist.test.com.log;

        location / {
                proxy_pass       http://phplist.local;
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto https;
                proxy_redirect   off;
        }
}

Comments

Please use github to comment on issues with this docker container

https://github.com/openmedicus/PHPListDocker

Docker Pull Command
Owner
openmedicus