Setup Flask app with docker and nginx

Just the steps

  1. git clone git@gitlab.com:saurshaz/my-py-app.git
  2. snap install docker
  3. snap start docker
  4. docker-compose up --build
  5. make changes to app folder for code and they'll be reflected immediately

access docker shell directly

(good to know, might be needed)

  • docker exec -i -t 6e24d2de3709 /bin/sh
  • replace 6e24d2de3709 with your docker container id/name. you can find that by running docker ps

No Comments Yet