bringup/http-gw/docker-compose.yml

23 lines
509 B
YAML
Raw Permalink Normal View History

2024-09-27 13:51:24 +00:00
version: '2'
networks:
bringup-network:
name: bringup
external: true
services:
http-gw:
image: golang:latest
hostname: http-gw${NODE_ID:?required variable not defined}
container_name: http-gw${NODE_ID}
networks:
bringup-network:
user: "${UID}:${GID}"
environment:
- NODE_COUNT=$NODE_COUNT
- HOME=/bringup/http-gw/data/home$NODE_ID
volumes:
- ..:/bringup
working_dir: /bringup/http-gw
command: ["make", "http-gw", "NODE_ID=${NODE_ID}"]