22 lines
497 B
YAML
22 lines
497 B
YAML
version: '2'
|
|
|
|
networks:
|
|
bringup-network:
|
|
name: bringup
|
|
external: true
|
|
|
|
services:
|
|
s3-gw:
|
|
image: golang:latest
|
|
hostname: s3-gw${NODE_ID:?required variable not defined}
|
|
container_name: s3-gw${NODE_ID}
|
|
networks:
|
|
bringup-network:
|
|
user: "${UID}:${GID}"
|
|
environment:
|
|
- NODE_COUNT=$NODE_COUNT
|
|
- HOME=/bringup/s3-gw/data/home$NODE_ID
|
|
volumes:
|
|
- ..:/bringup
|
|
working_dir: /bringup/s3-gw
|
|
command: ["make", "s3-gw", "NODE_ID=${NODE_ID}"]
|