You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

680 B

Tagesschule elementa

Docker

  1. Copy environment files .env*.example to .env* and make the configuration changes. Configure database user and ports for docker.

    • HTTP_PORT=8009 [.env] ...
  2. Main app has several mountpoints / volumes. Point them into the appropriate location on your filesystem

    • ./docker/static_collected
    • ./docker/data/media
    • ./docker/data
  3. To start

     docker-compose up
    
  4. Restore DB

     docker exec -i tagesschule_db_1 pg_restore -U django --no-owner -d db < 41ebf901-4607-4653-9b00-54a42d877b38.dump       
    
  5. Migrate

     docker-compose exec web manage.py migrate