Skip to content

An example project to run Vapor with external dependencies like DBs exposed to the web through ngrok

License

Notifications You must be signed in to change notification settings

pedantix/Vapor-Docker-Compose

Repository files navigation

Vapor Docker Compose

Rationale

Using Docker and Ngrok we can develop client applications for our Vapor APIs easily without having to standup a developmental instance on a 3rd party service such as heroku or vapor cloud.

Requirements

  • Vapor Toolbox
  • Docker version 18+

Usage - with sample project

  1. vapor update # install the packages
  2. docker-compose build # build the docker containers
  3. docker-compose up # starts the containers
  4. navigate to localhost:4040 # expose ngrok urls
  5. click on ngrok link to have access to your vapor application

Usage - with your project

TODO!

TODOS

  • script to install starter dockers scripts "Dockerfile" and "docker-compose.yml" into another vapor project to use as a template

Notes

Docker will create a temp file for persistent data like the postgresql volume

About

An example project to run Vapor with external dependencies like DBs exposed to the web through ngrok

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages