Installation Docker and its dependencies:
Build container:
-
Enter project folder.
cd vibrer # (you should get to the same level with Dockerfile)
-
Build container.
docker-compose build
Note:
To update pip dependencies, run Django model migrations and start server execute following:docker-compose -f docker-compose.yaml -f docker-compose.setup.yaml up
To make migrations and apply them run following:
docker-compose -f docker-compose.yaml -f docker-compose.mkmigrations.yaml up
To show running containers run following:
docker[-compose] ps
To stop running containers run following:
docker-compose stop
-
Before run container run following:
Install AWS CLI:sudo apt install awscli
Create AWS bucker:aws --endpoint-url=http://0.0.0.0:4572 s3 mb s3://vibrer-media
Add bucket ACL:aws --endpoint-url=http://0.0.0.0:4572 s3api put-bucket-acl --bucket vibrer-media --acl public-read
-
Run container.
docker-compose up
docker-compose start