Build the image:
docker-compose build
Run the web server:
docker-compose up
Open your browser with URL http://localhost:8080
. For the admin panel
http://localhost:8080/admin
(user: admin
, password: admin
).
The documentation can be consulted in http://localhost:8080/docs
.
Run the tests only once:
docker-compose run --rm --entrypoint 'bash scripts/run-tests.sh' location_service
Run the tests and leave bash open inside the container, so it's possible to
re-run the tests faster again using bash scripts/run-tests.sh [--keepdb]
:
docker-compose run --rm --entrypoint 'bash scripts/run-tests.sh --bash-on-finish' location_service
To run bash:
docker-compose run --rm --entrypoint 'bash' location_service
If you would like to clean the database and start the application, do:
docker-compose up --renew-anon-volumes --force-recreate --build