Skip to content

apemann/concordia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

concordia

Description coming soon

Getting started

  1. Stop any serices on host machine that use ports 80 or 5432 (such as apache2, postgresql) e.g. service postgresql stop
  2. Run docker-compose up -d --build
  3. Create the database schema using the provided script docker-compose exec web python create_db.py
  4. Inspect the DB server to verify that tables have been created successfully docker-compose exec db psql -U postgres --dbname=site_db
  5. Verify that the volume has been created docker volume inspect flask-template_db_data
  6. For use in production, set environment variables in env.prod and then set that file as the env_file for the web and db containers in docker-compose.yml
  7. When shutting down containers, is '-v' flag to erase db volume if required (docker-compose down -v)

Finally, set the Nginx image to a specific verison in the nginx docker file to avoid upsteam changes breaking the build.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published