You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This file is used for orchestrating and running Docker environment defined in the Dockerfile. It's an alternative to Kubernetus. Simply use it to make more than 1 container, i.e. development and production environment.
# TODO: production mode has to be tested.
version: "3.7"
services:
node:
build: . # Made build by Dockerfile.
environment:
- NODE_ENV=development # This will install all npm dependencies (for development).
#- NODE_ENV=production # This will install npm dependencies without devDependencies (for production).
# Set up name of the Docker image.
image: "thesisapp" # Set up name of the docker repository.
ports:
- "4200:4200" # Casting localhost port to display the application in the browser in a development machine.
- "49153:49153" # Live reload port (Angular dev server).
volumes:
- .:/home/node # Mount application folder to the container.
- /home/node/node_modules # Mount node_modules installed during the build to the container.