Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kuix/sendy-docker-image
Docker Image for Sendy Self Hosted Newsletter Application
https://github.com/kuix/sendy-docker-image
docker image sendy
Last synced: about 2 months ago
JSON representation
Docker Image for Sendy Self Hosted Newsletter Application
- Host: GitHub
- URL: https://github.com/kuix/sendy-docker-image
- Owner: kuix
- Created: 2017-12-27T11:19:00.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-27T17:20:04.000Z (about 7 years ago)
- Last Synced: 2024-02-09T20:39:41.801Z (11 months ago)
- Topics: docker, image, sendy
- Size: 3.91 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Docker Image for Sendy Self Hosted Newsletter Application
The image based on the original `php:7.2-apache` image but added some extra apache module which necessary for run sendy. The following modifications added:
* MySQL module added
* Apache ModRewrite module enabled
* Apache SSL module enabled### Usage
Define your environment variables based on `.env.example` file. After that place a compose file with the following content. This compose file will start two container:
* An Apache and PHP container to server sendy
* A MySQL container to store subsribers```
version: '2'
services:
apache-php:
image: sendy
container_name: sendy-apache-php
volumes:
- ./sendy/:/var/www/html
- ./cron:/etc/cron.d/sendy
- ./apache.conf:/etc/apache2/sites-enabled/000-default.conf
ports:
- "80:80"
- "443:443"
env_file:
- .env
links:
- mysql
sendy-mysql:
image: mysql:5.5
container_name: sendy-mysql
volumes:
- ./data/mysql:/var/lib/mysql
ports:
- "3306:3306"
env_file:
- .env
```### Generate SSL Certificate
You should run certification generation on your production server with the following command:
```docker run -it --rm -p 443:443 -p 80:80 --name certbot -v "/etc/letsencrypt:/etc/letsencrypt" -v "/var/lib/letsencrypt:/var/lib/letsencrypt" certbot/certbot certonly -d DOMAIN_NAME1 -d DOMAIN_NAME2```