Updated README with docker-compose instructions

This commit is contained in:
Sergiusz Warga 2021-10-17 13:48:42 +02:00
parent 747d9ea875
commit a1bc8accd3

View File

@ -22,4 +22,12 @@ So far I've managed to create cloze tasks for Pensa and Exercitia for the first
# Development
To run the app on your own machine run ```pipenv install``` to install requested packages based on the Pipfile and then run ```pipenv shell 'gunicorn --bind 0.0.0.0:5000 app:app'``` or ```flask run```.
To run the app on your own machine run ```pipenv install``` to install requested packages based on the Pipfile and then run ```pipenv shell 'gunicorn --bind 0.0.0.0:5000 app:app'``` or ```flask run```.
## Docker-compose
You may want to know `docker run -p 3200:5000 latin .`.
To update docker image:
1. Go to `/etc/docker-compose/latin` and run `docker-compose build`.
2. Run `systemctl restart docker-compose@latin`.