-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-stack.yml
43 lines (39 loc) · 909 Bytes
/
docker-stack.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: "3"
services:
preso-slides:
image: rupakg/preso-slides
ports:
- 3999:3999
deploy:
mode: replicated
replicas: 3
placement:
constraints:
- node.role == worker
preso-frontend:
image: nginx
ports:
- 8080:8080
volumes:
- preso-frontend_auth_data:/etc/nginx
depends_on:
- preso-slides
deploy:
placement:
constraints:
- node.hostname == manager1
source:
image: containerize/git
environment:
- REPO_LOCAL=/data/git/repos/preso-app
- REPO_BRANCH=master
- REPO_REMOTE=https://github.com/rupakg/preso-app.git
tty: true
volumes:
- preso-frontend_auth_data:/data/git/repos/preso-app/preso-auth
deploy:
placement:
constraints:
- node.hostname == manager1
volumes:
preso-frontend_auth_data: {}