/docker-config

Example of docker config for JavaScript applications

Primary LanguageJavaScript

Docker configuration example

The repository has an example configuration for docker with base services

  • Frontend SPA
  • Frontend SSR
  • Backend
  • Database (MongoDB)

Each service has docker files for the local and production environment.

Run application

Local environment

The environment uses a .env file

./dev.sh

Or you can run a single service (ex. only backend)

./dev.sh up backend

Production/Staging/Testing environment

Run any environments

./env.sh .env.prod
./env.sh .env.stg