node-edge
Version:
node-edge is a client library for creating distributed endpoints for edge computing using local area networking.
26 lines (23 loc) • 616 B
YAML
version: '3.5'
services:
edge-test:
image: "node:lts"
container_name: edge-test
user: "node"
working_dir: /home/node/app
environment:
- NODE_ENV=production
volumes:
- ./:/home/node/app
network_mode: "host"
#expose:
# - port already exposed on application
#restart: always / on-failure:10 / unless-stopped
restart: unless-stopped
#command: "node app.js"
command: "node test.js"
#command: "npm start"
# start
# sudo docker compose up edge-test
# stop
# sudo docker compose down