- for running server -
docker-compose up
- for shell
docker-compose run --service-ports web bash
- do -
docker-compose up
- then run
sudo chown -R 1001:1001 data
in the project base directory - exec into postgres container and create a database with name
efarms_assignment
docker exec -ti efarms_postgres bash
psql -U user_name -W password
create database efarms_assignment;
- then run -
docker-compose up
again all containers should work now