24 lines
759 B
YAML
24 lines
759 B
YAML
# docker-compose.yml
|
|
|
|
services:
|
|
external:
|
|
container_name: external
|
|
# The name of the image that will be created when building this container
|
|
# Change this based on your app's name...
|
|
image: external-website:latest
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
user: "node"
|
|
environment:
|
|
# Internal server error messages will not send stacktrace to the browser in production
|
|
- NODE_ENV=production
|
|
# Sets the timezone of the containers OS
|
|
- TZ=Pacific/Auckland
|
|
# Points to a file with the sensitive environment variables
|
|
env_file:
|
|
- .env
|
|
restart: unless-stopped
|
|
ports:
|
|
# change the port on 127.0.0.1 to ensure it's not already in use on the host.
|
|
- 127.0.0.1:5050:5050
|