1 Volatile database (data wiped on container restart)
1 Application backend
There are 2 build targets for the application backend: prod and dev. prod fetches a fresh copy of a specified repository + branch and build it in place. dev copies local files and rebuilds is inside the container.
3 new npm scripts must exist inside the frontend and backend projects: clean, build:dev and build:prod. clean removes any disposable files that aren't relevant to the build and also not ignored by .dockerignore. build:dev and build:prod should build the development (testing) version and the production build, respectively.
Docker container definitions include:
There are 2 build targets for the application backend:
prod
anddev
.prod
fetches a fresh copy of a specified repository + branch and build it in place.dev
copies local files and rebuilds is inside the container.3 new npm scripts must exist inside the frontend and backend projects:
clean
,build:dev
andbuild:prod
.clean
removes any disposable files that aren't relevant to the build and also not ignored by.dockerignore
.build:dev
andbuild:prod
should build the development (testing) version and the production build, respectively.