Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.33 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.33 KB

Install docker and docker-compose

  • install Docker
  • install docker-compose
    • with pip: pip install docker-compose

Docker-compose scenarios

  • create and run docker images for all server dependencies (mysql, mailhog):
docker-compose -f etc/docker/docker-compose.yml up
  • create and run the docker image for the server (copies the local version):
docker-compose -f etc/docker/docker-compose-dev.yml up
  • create and run docker images for the server (clones the latest version) and all its dependencies:
docker-compose -f etc/docker/docker-compose-prod.yml up --build
  • create and run the docker image for the client on port 80:
docker-compose -f etc/docker/docker-compose-frontend.yml up --build

Docker-compose services

Database

  • to connect to the dockerized server with the mysql client run: docker-compose exec mysql mysql -u root -p

  • in order to remove the volumes (eg. the database volume) associated with a compose file run:

docker-compose -f etc/docker/docker-compose.yml down -v

Mailhog

  • you can use Mailhog to test email sending/receiving:
    • to check all sent emails from the server go to http://localhost:8025.