-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-development.yml
23 lines (22 loc) · 1.23 KB
/
docker-compose-development.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: '3.8'
# Configuration for the Docker Compose file version 3.8
services:
# Define the services that make up your application, so they can be run together in an isolated environment.
app:
# Configuration for the 'app' service.
build:
# Build configuration for the service.
context: . # The context is the set of files located in the current directory.
dockerfile: Dockerfile # Specifies which Dockerfile to use for the build process.
ports:
- '5000:5000' # Binds the host port 5000 to the container port 5000.
env_file:
- .env.development # Specifies the environment file to load environment variables from.
volumes:
- .:/usr/src/app # Mounts the current directory into the container at /usr/src/app.
- /usr/src/app/node_modules # Persists node_modules folder to prevent recreation on each build.
restart: unless-stopped
# The container will restart unless it is explicitly stopped.
environment:
- NODE_ENV=development # Sets the NODE_ENV environment variable to 'development'.
- DEBUG=true # Enables debugging capabilities by setting the DEBUG environment variable to true.