-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-staging.yml
19 lines (18 loc) · 1018 Bytes
/
docker-compose-staging.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
version: '3.8'
# Specifies the version of the Docker Compose file syntax.
services:
# Defines the services, their configuration, and how they interact.
app:
# The 'app' service definition, describing how to build and run your application container.
build:
# Instructions for building the Docker image.
context: . # Specifies the build context location, which is the current directory.
dockerfile: Dockerfile # Specifies the Dockerfile to use for building the image.
ports:
- '5002:5002' # Maps port 5002 on the host to port 5002 in the container, allowing external access.
env_file:
- .env.staging # Specifies the environment file that contains the staging environment variables.
restart: unless-stopped
# Configures the restart policy to restart the container unless it is explicitly stopped.
environment:
- NODE_ENV=staging # Sets the NODE_ENV environment variable to 'staging'.