First commit of biketree to github!

This commit is contained in:
Jonathan Rosenbaum
2017-09-05 03:39:54 +00:00
commit 8ca61d45eb
175 changed files with 24173 additions and 0 deletions
Binary file not shown.
+20
View File
@@ -0,0 +1,20 @@
#############
# biketree #
#############
# Password is password for &
# docker run -d --name bikebike --env VIRTUAL_HOST=bikebike.wvcompletestreets.org --expose 80 -v /home/freesource/public_html/bikebike:/usr/share/nginx/html nginx:1.11-alpine
FROM nginx:1.11-alpine
MAINTAINER Jonathan Rosenbaum <gnuser@gmail.com>
RUN rm -rf /usr/share/nginx/html; apk update; apk add git; apk add php5-mysql
RUN git clone https://github.com/fspc/biketree.git /usr/share/nginx/html
COPY settings.php /usr/share/nginx/html
COPY default.conf /etc/nginx/conf.d
RUN chown -R nginx:nginx /usr/share/nginx/html; mkdir /var/www; ln -sf /usr/share/nginx/html/ /var/www/html
RUN chown -R nginx:nginx /var/www/html/images/
VOLUME /usr/share/nginx/html
+16
View File
@@ -0,0 +1,16 @@
#############
# biketree #
#############
# Password is password for &
FROM php:5-fpm-alpine
MAINTAINER Jonathan Rosenbaum <gnuser@gmail.com>
# better hardwire www-data in the future in /etc/password
# and make sure nginx also starts with same user
RUN chown -R www-data:www-data /var/www/html; apk update; \
apk add php5-mysql; \
cp -a /etc/php5/* /usr/local/etc/php; \
cp /usr/lib/php5/modules/mysql.so `php-config --extension-dir`/; \
Binary file not shown.
+69
View File
@@ -0,0 +1,69 @@
server {
listen 80;
#server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
location / {
root /var/www/html;
index index.php index.html index.htm;
}
# location ~ \.(gif)$ {
# root /var/www/html;
# }
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
# location ~ \.php$ {
#@ root html;
# fastcgi_pass fpm:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
# }
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass fpm:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
# location ~ \.php$ {
# fastcgi_pass fpm:9000;
# fastcgi_index index.php;
# include fastcgi_params;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param HTTPS off;
# }
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
+71
View File
@@ -0,0 +1,71 @@
version: '2'
# git clone https://github.com/fspc/biketree.git
# This compose file uses jrcs/letsencrypt-nginx-proxy-companion
# using nginx-alpine
services:
biketree:
container_name: biketree
build: .
network_mode: "bridge"
#restart: always
environment:
- VIRTUAL_HOST=biketree.bikelover.org
- LETSENCRYPT_HOST=biketree.bikelover.org
- LETSENCRYPT_EMAIL="bike@bikelover.org"
links:
- fpm
volumes:
- fpm:/usr/share/nginx/html
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# https://hub.docker.com/_/php/
fpm:
container_name: biketree-fpm
build:
context: ./
dockerfile: Dockerfile-fpm
#image: php:5-fpm-alpine
network_mode: "bridge"
#restart: always
environment:
- PHP_INI_DIR=/etc/php/
links:
- mysql
volumes:
- fpm:/var/www/html
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# https://hub.docker.com/_/mysql/
mysql:
container_name: biketree-mysql
image: mysql:5.5
network_mode: "bridge"
#restart: always
environment:
- MYSQL_ROOT_PASSWORD=whatever
- MYSQL_USER=biketree
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=biketree
volumes:
- data:/var/lib/mysql
- ./sql:/docker-entrypoint-initdb.d
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
data:
fpm:
+42
View File
@@ -0,0 +1,42 @@
<?php
$cfg_company="The Bike Root";
$cfg_address="Positive Spin,
Morgantown,
WV, USA";
$cfg_phone="123-456-7890";
$cfg_email="jr@bikelover.org";
$cfg_fax="";
$cfg_website="http://biketree.wvcompletestreets.org";
$cfg_other="";
$cfg_server="mysql";
$cfg_database="biketree";
$cfg_username="biketree";
$cfg_password="password";
$cfg_tableprefix="";
$cfg_default_tax_rate="0";
$cfg_currency_symbol="$";
$cfg_theme="serious";
$cfg_numberForBarcode="Row ID";
$cfg_language="english.php";
$cfg_reqmembership="1";
$cfg_membershipID="1";
$cfg_sellToNonMembers="1";
$cfg_emailFromAddress="jr@bikelover.org";
$cfg_dailyLateFee="2";
$cfg_mailmanLocation="bikelover.org";
$cfg_mailmanListName1="newsletter";
$cfg_mailmanListName2="volunteers";
$cfg_mailmanListName3="steering";
$cfg_mailmanPass="yourpassword";
$cfg_adminAutoSignin="1";
$cfg_mechAutoSignin="option";
$cfg_administratorTitle="Administrator";
$cfg_mechanicTitle="Mechanic";
$cfg_mustOpen="0";
# weird stuff has to use mysql host, this time 172.17.0.32
$db_host = "localhost";
$db_user = "biketree";
$db_pwd = "password";
$database = "biketree";
?>
File diff suppressed because it is too large Load Diff