docker-compose up
docker-compose -f docker-compose-dev.yml up
docker-compose -f docker-compose-dev.yml stop
in api file add the production env, you can find a example in "./api/production.env.example", add the values of variables, in hosts and ports you can put 0.
docker-compose -f docker-compose-dev.yml build
docker-compose -f docker-compose-dev.yml up postgres cache redis api
docker-compose -f docker-compose-dev.yml exec api bash load_initial_data.sh
docker-compose -f docker-compose-dev.yml exec api bash
python manage.py migrate
python manage.py loaddata /surface/fixtures/*
docker-compose -f docker-compose-dev.yml exec api python manage.py createsuperuser
docker-compose -f docker-compose-prd.yml -p surface_new exec api bash load_initial_data.sh
docker-compose -f docker-compose-prd.yml -p surface_new exec api python manage.py collectstatic --noinput
docker-compose -f docker-compose-dev.yml exec postgres pg_restore -U dba -d surface_db /data/shared/dump_surface_20211114.dump
docker-compose -f docker-compose-dev.yml exec postgres psql -U dba -d surface_db -c "\COPY raw_data FROM '/data/shared/dump_raw_data_20211130.csv' WITH DELIMITER ',' CSV HEADER;"
docker-compose -f docker-compose-dev.yml exec postgres psql -U dba -d surface_db