2024-08-29 11:40:28 +12:00
|
|
|
# docker-compose.yml
|
|
|
|
|
|
|
|
services:
|
2024-08-29 12:04:45 +12:00
|
|
|
app:
|
|
|
|
container_name: webservices-app
|
2024-08-29 11:40:28 +12:00
|
|
|
# The name of the image that will be created when building this container
|
|
|
|
# Change this based on your app's name...
|
2024-08-29 12:04:45 +12:00
|
|
|
image: forge.magnificent.nz/lightweight/webservices-app:latest
|
2024-08-29 11:40:28 +12:00
|
|
|
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
|
2024-08-30 15:52:25 +12:00
|
|
|
# this stanza allows your container to find the site with the source data without needing to have
|
|
|
|
# dns set up properly. Comment it out if you don't need it.
|
|
|
|
extra_hosts:
|
|
|
|
- "static.magnificent.nz:203.118.159.63"
|