23 lines
509 B
YAML
23 lines
509 B
YAML
|
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}"]
|