30 lines
710 B
YAML
30 lines
710 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "80:80"
|
|
environment:
|
|
- NODE_ENV=production
|
|
restart: unless-stopped
|
|
# Mount these as volumes to enable hot updating without rebuilding the container
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
|
- ./.env:/usr/share/nginx/html/.env
|
|
|
|
# Optional service for the app.js backend script
|
|
# Uncomment and configure as needed
|
|
# backend:
|
|
# build:
|
|
# context: .
|
|
# dockerfile: Dockerfile.backend
|
|
# environment:
|
|
# - NODE_ENV=production
|
|
# - WREN_API_TOKEN=${WREN_API_TOKEN}
|
|
# restart: unless-stopped
|
|
# depends_on:
|
|
# - web
|