Thanks to visit codestin.com
Credit goes to github.com

Skip to content

castellersestocolm/website

 
 

Repository files navigation

ComuniCAT

Local setup

Requirements

  • Docker
  • Docker compose

Setup

  1. Build the backend image.
docker-compose build backend frontend-towers frontend-org
  1. Create the containers.
docker-compose up -d
  1. Migrate the database.
docker exec -it website_backend_1 python manage.py migrate
  1. You can make a superuser so you can access the admin.
docker exec -it website_backend_1 python manage.py createsuperuser
  1. After development, to turn down the containers.
docker-compose down

Remote setup

Postfix configuration

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = comunicat
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localhost.$mydomain, localhost, $myhostname
relayhost = smtp-relay.gmail.com:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 172.16.0.0/12
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = 172.17.0.1
inet_protocols = ipv4
myorigin = /etc/mailname
masquerade_domains = castellersestocolm.se lesquatrebarres.org

Docker stack

Create a personal token with "package:read" access.

docker login ghcr.io --username $GITHUB_USERNAME -p $GITHUB_TOKEN
docker swarm init --advertise-addr $PUBLIC_IP
docker stack deploy --with-registry-auth --compose-file docker-compose-prod.yml --detach=true comunicat

About

Management system for the Castellers d'Estocolm and Les quatre barres

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 41.1%
  • TypeScript 28.2%
  • PHP 9.7%
  • JavaScript 9.6%
  • HTML 7.6%
  • CSS 3.5%
  • Other 0.3%