Sign inSign up

lucas42/lucos_contacts_web

By lucas42

•Updated 3 days ago

An nginx server for routing traffic to the lucos_contacts backend. Also serves static assets.

Image
0

10K+

lucas42/lucos_contacts_web repository overview

⁠Lucos contact list

An app for keeping track of personal contacts

⁠Requirements

  • Docker
  • Docker Compose

⁠Architecture

Has three components:

  • db - a postgres database
  • app - a Django app served using gunicorn
  • web - an nginx server for routing traffic to app and serving static files

⁠Running

PRODUCTION=true SECRET_KEY=<secret> nice -19 docker-compose up -d --no-build

⁠Restoring from backup

Assuming the backup file is available over ssh on another machine, run the following commands:

  • docker-compose exec db apk add openssh-client
  • docker-compose exec db scp <user@hostname>:/tmp/contacts.sql /tmp/contacts.sql
  • docker-compose exec db sh -c 'psql --user postgres postgres < /tmp/contacts.sql'

Tag summary

Content type

Image

Digest

sha256:cabc5804e…

Size

25.6 MB

Last updated

3 days ago

docker pull lucas42/lucos_contacts_web