Alpine-based images for size reduction

This commit is contained in:
Marwolf
2018-09-04 21:42:16 -04:00
parent 1bb05b3221
commit c0d7a296fc
3 changed files with 37 additions and 7 deletions

View File

@@ -2,13 +2,14 @@ version: '3.1'
services:
nginx:
image: nginx:latest
image: nginx:1.15.3-alpine-perl
container_name: nginx
volumes:
- "./etc/nginx:/etc/nginx/conf.d"
- "./Website:/var/www/html"
- "./etc/nginx/logs:/var/log/nginx"
- "./etc/letsencrypt:/etc/letsencrypt"
- "./etc/php:/etc/nginx/php"
ports:
- "80:80"
- "443:443"
@@ -64,7 +65,7 @@ services:
- "./etc/tomcat:/usr/local/tomcat/conf"
ghost:
image: ghost:latest
image: ghost:2.0.3-alpine
container_name: ghost
ports:
- "127.0.0.1:2368:2368"
@@ -78,8 +79,10 @@ services:
- privacy__useUpdateCheck=false
php:
image: nanoninja/php-fpm:7.2
image: php:7.2.9-fpm-alpine3.6
container_name: php
ports:
- "9001:9001"
volumes:
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
- "./Website:/var/www/html/public"