-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
18 lines (17 loc) · 1.02 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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" # Casting webpack port to live reload on the development machine.
volumes:
- .:/home/node # Mount application folder to the container.
- /home/node/node_modules # Mount node_modules installed during the build to the container.