mirror of
https://github.com/docker-training/node-bulletin-board.git
synced 2025-05-17 11:39:30 +08:00
Add stack file
This commit is contained in:
parent
0cb076570a
commit
8152964f12
38
docker-stack.yml
Normal file
38
docker-stack.yml
Normal 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:
|
Loading…
x
Reference in New Issue
Block a user