-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bastillefile
36 lines (29 loc) · 1.18 KB
/
Bastillefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ARG php-version=82
ARG config=www
ARG mailip=10.0.0.10
PKG nginx htop
PKG php${php-version} php${php-version}-extensions
PKG php${php-version}-mysqli php${php-version}-pdo_mysql
PKG php${php-version}-curl php${php-version}-mbstring
CMD mkdir -p /www/certificates
CMD mkdir -p /usr/local/etc/git_config/nginx
CMD mkdir -p /usr/local/etc/git_config/php
CMD mkdir -p /www/vhosts/${config}
MOUNT /werzel/certificates www/certificates nullfs ro 0 0
MOUNT /werzel/server_config/nginx usr/local/etc/git_config/nginx nullfs ro 0 0
MOUNT /werzel/server_config/php usr/local/etc/git_config/php nullfs ro 0 0
MOUNT /werzel/${config} www/vhosts/${config} nullfs rw 0 0
# Link Configurations
CMD rm -rf /usr/local/etc/nginx/nginx.conf
CMD ln -s /usr/local/etc/git_config/nginx/${config}.conf /usr/local/etc/nginx/nginx.conf
CMD ln -s /usr/local/etc/git_config/php/${config}.conf /usr/local/etc/php-fpm.d/${config}.conf
#Create additional Dirs for TMP / Session
CMD mkdir -p /www/vhosts
CMD mkdir -p /www/vhosts/tmp
CMD mkdir -p /www/vhosts/sessions
CMD mkdir -p /www/vhosts/upload_tmp
CMD chown -R www:www /www/vhosts
SYSRC php_fpm_enable=YES
SYSRC nginx_enable=YES
SERVICE php-fpm start
SERVICE nginx start