sha256:026822fb6dca3836fe83f2297ecae19dbe944f43fa370eb4e2e1e198ae0e4b42
Last pushed
4 days by brnshkr
Type
Compose
Manifest digest
sha256:026822fb6dca3836fe83f2297ecae19dbe944f43fa370eb4e2e1e198ae0e4b42
services:
node:
extends:
file: ./base.yaml
service: base
image: "${NODE_IMAGE:-\
${NODE_REPOSITORY:-node}\
:${NODE_TAG:?Set `NODE_TAG` and `NODE_IMAGE_DIGEST`, or `NODE_IMAGE`.}\
@${NODE_IMAGE_DIGEST:?Set `NODE_TAG` and `NODE_IMAGE_DIGEST`, or `NODE_IMAGE`.}}"
profiles:
- node
working_dir: /app
user: ${HOST_UID:-1000}:${HOST_GID:-1000}
mem_limit: ${NODE_CONTAINER_MEMORY_LIMIT:-2g}
pids_limit: ${NODE_CONTAINER_PIDS_LIMIT:-256}
environment:
HOME: /tmp
tmpfs:
- /tmp:rw,nosuid,nodev,size=512m
volumes:
- ${HOST_APP_DIR:-${PWD}}:/app:rw
services:
base:
restart: unless-stopped
logging:
driver: local
init: true
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
docker compose -f oci://brnshkr/forge-compose-node:0.0.1-alpha.1 upUse the above command to pull and run the Compose file. Learn more.