add container name to docker compose
All checks were successful
Publish Docker Image / docker (push) Successful in 1m23s

This commit is contained in:
Lee 2023-07-12 13:55:48 +01:00
parent e8dae24f97
commit b3be2ee10f
2 changed files with 4 additions and 2 deletions

@ -17,6 +17,9 @@ COPY . .
# Remove development dependencies # Remove development dependencies
RUN npm prune --production RUN npm prune --production
# Environment Variables
ENV NODE_ENV=production
# Expose port 3000 # Expose port 3000
EXPOSE 3000 EXPOSE 3000

@ -8,9 +8,8 @@ services:
# or build it locally (you need to clone the repo first): # or build it locally (you need to clone the repo first):
# build: # build:
# context: . # context: .
container_name: SimpleLinks
restart: always restart: always
environment:
NODE_ENV: production
ports: ports:
- 3000:3000 - 3000:3000
volumes: volumes: