Add stack file

This commit is contained in:
Elton Stoneman 2017-11-20 21:41:32 +00:00
parent 0cb076570a
commit 8152964f12

38
docker-stack.yml Normal file
View File

@ -0,0 +1,38 @@
version: '3.3'
services:
bb-db:
image: ${dockerId}/bulletin-board-db
networks:
- bb-net
bb-app:
image: ${dockerId}/bulletin-board-app
networks:
- bb-net
bb-proxy:
image: ${dockerId}/bulletin-board-proxy
ports:
- "80:80"
networks:
- bb-net
deploy:
mode: replicated
replicas: 3
bb-metrics:
image: ${dockerId}/bulletin-board-metrics
networks:
- bb-net
bb-dashboard:
image: ${dockerId}/bulletin-board-dashboard
ports:
- "3000:3000"
networks:
- bb-net
networks:
bb-net: