- Docker
- Docker compose
- Build the
backendimage.
docker-compose build backend frontend-towers frontend-org- Create the containers.
docker-compose up -d- Migrate the database.
docker exec -it website_backend_1 python manage.py migrate- You can make a superuser so you can access the admin.
docker exec -it website_backend_1 python manage.py createsuperuser- After development, to turn down the containers.
docker-compose downsmtpd_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.orgCreate 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