diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml new file mode 100644 index 0000000..0a297b9 --- /dev/null +++ b/docker-compose.dev.yml @@ -0,0 +1,13 @@ +services: + fnb-website: + build: . + ports: + - 1312:1312 + fnb-website-database: + image: mongodb/mongodb-community-server:8.0-ubi8 + volumes: + - type: bind + source: ./mounts/database + target: /data/db + ports: + - 27017:27017 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 519c092..e456d4a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,15 @@ services: - fnb-redirecter: + fnb-website: build: . labels: + traefik.enable: true traefik.http.routers.fnb-redirecter.rule: Host(`rocfnb.org`) traefik.http.routers.fnb-redirecter.tls.certresolver: letsencrypt_standalone - networks: [ public ] \ No newline at end of file + networks: [ public, fnb-website ] + fnb-website-database: + image: mongodb/mongodb-community-server:8.0-ubi8 + networks: [ fnb-website ] + volumes: + - type: bind + source: ./mounts/database + target: /data/db diff --git a/fnb_redirecter/__init__.py b/fnb_redirecter/__init__.py deleted file mode 100644 index 2f31474..0000000 --- a/fnb_redirecter/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from fnb_redirecter.server import app \ No newline at end of file diff --git a/fnb_redirecter/__main__.py b/fnb_redirecter/__main__.py deleted file mode 100644 index 6264389..0000000 --- a/fnb_redirecter/__main__.py +++ /dev/null @@ -1,3 +0,0 @@ -from os import execlp - -execlp('gunicorn', 'gunicorn', '--conf', '/app/wsgi-conf.py', '--bind', '0.0.0.0:1312', 'fnb_redirecter:app') \ No newline at end of file diff --git a/fnb_redirecter/server.py b/fnb_redirecter/server.py deleted file mode 100644 index 2967ca7..0000000 --- a/fnb_redirecter/server.py +++ /dev/null @@ -1,16 +0,0 @@ -from flask import Flask, redirect - -app = Flask(__name__.split('.')[0]) - -@app.route('/ig') -def ig_redir(): - return redirect('https://instagram.com/RocFNB') - -@app.route('/donate') -def donate_redir(): - return redirect('https://venmo.com/RocFoodNotBombs') - -@app.errorhandler(404) -def redirect_other(_): - return redirect('https://linktr.ee/RocFNB') - diff --git a/pyproject.toml b/pyproject.toml index 6f7bb0b..693bd80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools", "setuptools-scm"] build-backend = "setuptools.build_meta" [project] -name = "fnb_redirecter" +name = "roc_fnb_website" authors = [{ name = "D. Scott Boggs", email = "scott@techwork.zone" }] description = "Temporary placeholder for fnb web site" readme = "README.md" diff --git a/roc_fnb/__init__.py b/roc_fnb/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/roc_fnb/__main__.py b/roc_fnb/__main__.py new file mode 100644 index 0000000..c45611b --- /dev/null +++ b/roc_fnb/__main__.py @@ -0,0 +1,3 @@ +from os import execlp + +execlp('gunicorn', 'gunicorn', '--conf', './wsgi-conf.py', '--bind', '0.0.0.0:1312', 'roc_fnb.website:app') \ No newline at end of file diff --git a/roc_fnb/website/__init__.py b/roc_fnb/website/__init__.py new file mode 100644 index 0000000..b0e5ce3 --- /dev/null +++ b/roc_fnb/website/__init__.py @@ -0,0 +1 @@ +from roc_fnb.website.server import app diff --git a/roc_fnb/website/server.py b/roc_fnb/website/server.py new file mode 100644 index 0000000..083e0fc --- /dev/null +++ b/roc_fnb/website/server.py @@ -0,0 +1,19 @@ +from flask import Flask, redirect, url_for, request, send_file + +app = Flask( + import_name=__name__.split('.')[0], + static_url_path='/' +) + +@app.route('/ig') +def ig_redir(): + return redirect('https://instagram.com/RocFNB') + +@app.route('/donate') +def donate_redir(): + return redirect('https://venmo.com/RocFoodNotBombs') + +@app.route('/') +def index(): + return redirect('/index.html') + diff --git a/roc_fnb/website/static/blog.html b/roc_fnb/website/static/blog.html new file mode 100644 index 0000000..7893e48 --- /dev/null +++ b/roc_fnb/website/static/blog.html @@ -0,0 +1,31 @@ + + +
+ +
+Free hot meals are served every Saturday at 6:30PM in front of the RTS Transit Center on St. Paul.
+Help us cook every Saturday at 4PM at the Flying Squirrel Community Space. +
+Rochester Food Not Bombs recovers resources to create free vegetarian and vegan meals in our local + community. + We + are a decentralized all-volunteer run group, with no hierarchy or formal leaders, making decisions based + on + consensus.
++ We recognize poverty as a form of violence, and think access to food should be viewed as a right, rather + than a + privilege. In this practice, we strive to reduce waste by turning donated food into productive meals. We + source + food from vendors at the Public Market, as well as relying on donations. Food should be a source of + nutrition + for + people, not profit under capitalism. Through Community organizing and outreach, we support other local + and + national peace and justice groups to create a broader sense of social responsibility -- If you would + like to + get + involved, please reach out to us! +
+