Initial commit.

This commit is contained in:
yohan 2019-11-11 23:29:59 +01:00
commit 1528fa8221
4 changed files with 2077 additions and 0 deletions

59
docker-compose.yml Normal file
View File

@ -0,0 +1,59 @@
version: "2.1"
services:
apache-for-fpm:
image: apache-scuttle:$VERSION_APACHE_FPM
build: "https://git.scimetis.net/yohan/docker-apache-for-fpm.git"
container_name: apache-piwigo
restart: always
networks:
- reverse-proxy
- php-fpm-piwigo
volumes:
- piwigo:/var/www/html:z
- /mnt/data/scimetis.net/home/www/piwigo/upload:/mnt/upload
- /mnt/data/scimetis.net/home/www/piwigo/galleries:/mnt/galleries
- /mnt/data/scimetis.net/home/www/piwigo/_data/i:/mnt/i
- ./fpm.conf:/etc/apache2/sites-available/fpm.conf
environment:
FPM_HOST: php-fpm-piwigo:9000
SERVER_NAME: piwigo.scimetis.net
php-fpm:
image: php-fpm-piwigo:$VERSION_PHP_FPM_PIWIGO
build:
context: "https://git.scimetis.net/yohan/docker-php-fpm-piwigo.git"
# requires docker v17
# args:
# - VERSION_PHP_FPM
container_name: php-fpm-piwigo
restart: always
networks:
- php-fpm-piwigo
- mysqlnet
volumes:
- piwigo:/var/www/html:z
- piwigo_php5-fpm_conf:/etc/php/7.3/fpm/pool.d:Z
- ./php.ini:/etc/php/7.3/fpm/php.ini
- /mnt/data/scimetis.net/home/www/piwigo/upload:/mnt/upload
- /mnt/data/scimetis.net/home/www/piwigo/galleries:/mnt/galleries
- /mnt/data/scimetis.net/home/www/piwigo/_data/i:/mnt/i
networks:
reverse-proxy:
external: true
php-fpm-piwigo:
mysqlnet:
external: true
volumes:
piwigo:
external: true
piwigo_php5-fpm_conf:
external: true

19
fpm.conf Normal file
View File

@ -0,0 +1,19 @@
<VirtualHost *:80>
ServerName ${SERVER_NAME}
<FilesMatch "\.php$">
SetHandler proxy:fcgi://${FPM_HOST}
</FilesMatch>
DocumentRoot /var/www/html/piwigo
<Directory /var/www/html/piwigo>
Options FollowSymLinks MultiViews
# enable the .htaccess rewrites
AllowOverride All
Require all granted
</Directory>
ErrorLog /dev/stderr
CustomLog /dev/stderr combined
</VirtualHost>

1988
php.ini Normal file

File diff suppressed because it is too large Load Diff

11
start_or_update.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
unset VERSION_APACHE_FPM
unset VERSION_PHP_FPM
unset VERSION_PHP_FPM_PIWIGO
export VERSION_APACHE_FPM=$(git ls-remote ssh://git@git.scimetis.net:2222/yohan/docker-apache-for-fpm.git| head -1 | cut -f 1|cut -c -10)
export VERSION_PHP_FPM=$(git ls-remote ssh://git@git.scimetis.net:2222/yohan/docker-php7-fpm.git| head -1 | cut -f 1|cut -c -10)
export VERSION_PHP_FPM_PIWIGO=$(git ls-remote ssh://git@git.scimetis.net:2222/yohan/docker-php-fpm-piwigo.git| head -1 | cut -f 1|cut -c -10)
sudo -E bash -c 'docker build -t php7-fpm:latest "https://git.scimetis.net/yohan/docker-php7-fpm.git"' \
&& sudo -E bash -c 'docker-compose up -d --build --force-recreate'