Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 1.06 KB

README_docker.md

File metadata and controls

55 lines (34 loc) · 1.06 KB

run and fun - docker

Getting started

Normally the docker version is used to build and run the productive version, so it is prepared as productive.

Create environment file for docker and docker-compose and check the configuration.

cp default.env .env

Note: This file will not be under version control but listed in .gitignore.

Check for the existence of environment.prod.ts as described in run and fun - client.

Check for the existence of application-prod.yml as described in run and fun - server.

Usage

# build the image and container
docker-compose build

# run the container
docker-compose up -d

# run the container and rebuild
docker-compose up -d --build

# stop the container
docker-compose down

Configuration

Table of contents

PORT

Defines the port from external access.

  • default: 8080
  • type: number

PROFILE

Defines the profile which should be used.

  • default: prod
  • type: string
  • values: dev/prod