Minimalistic file-based HTMLy blog engine bundled with php5 fpm, listening on port 9000.
382
Minimalistic file-based HTMLy blog engine bundled with php5 fpm, listening on port 9000.
Source repo: https://lolg.it/herby/docker-htmly.git.
Directories config and content should be injected, and it should be composed with an actual server.
Sample use case with nginx:
nginx.compose.yml:
version: "2"
services:
nginx:
image: nginx
container_name: nginx
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- /mnt/storage/VOLUMES/nginx-logs:/var/log/nginx
- /home/rancher/src/nginx/default.conf:/etc/nginx/conf.d/default.conf
blog.herby.sk.compose.yml:
version: "2"
services:
php-blog-herby-sk:
image: herbysk/htmly
container_name: blog-herby-sk
volumes:
- blog-herby-sk:/home/htmly
- /mnt/storage/VOLUMES/blog.herby.sk/config:/home/htmly/config
- /mnt/storage/VOLUMES/blog.herby.sk/content:/home/htmly/content
restart: always
networks:
- herbynet
nginx:
volumes:
- blog-herby-sk:/home/blog-herby-sk:ro
- /mnt/storage/VOLUMES/blog.herby.sk/site.conf:/etc/nginx/conf.d/blog.herby.sk.conf
networks:
- herbynet
networks:
herbynet:
volumes:
blog-herby-sk:
site.conf:
server {
listen *:80;
server_name blog.herby.sk;
error_log /var/log/nginx/herbyBlog-error.log;
access_log /var/log/nginx/herbyBlog-access.log;
root /home/blog-herby-sk;
index index.php;
location ~ /config/ {
deny all;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
fastcgi_pass php-blog-herby-sk:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/htmly$fastcgi_script_name;
include fastcgi_params;
}
}
Then, docker-compose up -f nginx.compose.yml -f blog.herby.sk.compose.yml up -d starts the server that serves HTMLy instance (of course you can have more of them, each with own dir mapped for static content and own shared volume to have copies separated so caches won't collide).
Content type
Image
Digest
Size
121.5 MB
Last updated
about 7 years ago
docker pull herbysk/htmly