Bang/docker/docker-compose.yml

24 lines
562 B
YAML
Raw Normal View History

2025-02-27 11:44:25 -06:00
version: '3.8'
services:
bang-web-server:
build:
context: ../ # point to the parent directory where package.json and source code reside
dockerfile: docker/Dockerfile # specific path to the Dockerfile
container_name: bang
domainname: bang.gbrown.org
hostname: bang
networks:
- node_apps
ports:
- "5000:5000"
tty: true
restart: unless-stopped
volumes:
- ../:/app # mount the parent directory to /app in the container
command: serve -s /app -l 5000
networks:
node_apps:
external: true