-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (50 loc) · 1.2 KB
/
docker-compose.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
44
45
46
47
48
49
50
51
52
# docker build -t expassauth -f node.dockerfile .
# docker login
# docker tag expassauth tumbone/expassauth:2.1.0
# docker push tumbone/expassauth:2.1.0
# docker run -p 3000:3000 tumbone/expassauth:2.1.0
# docker machine env myvm1
# & "C:\Program Files\Docker\Docker\Resources\bin\docker-machine.exe" env myvm1 | Invoke-Expression
# docker swarm init
# docker stack deploy -c docker-compose.yml node-express-auth-app
version: "3"
services:
angpassauth:
image: tumbone/angpassauth:latest
deploy:
resources:
limits:
cpus: "0.1"
memory: 50M
restart_policy:
condition: on-failure
ports:
- "3001:3001"
networks:
- webnet
expassauth:
image: tumbone/expassauth:latest
deploy:
resources:
limits:
cpus: "0.1"
memory: 50M
restart_policy:
condition: on-failure
ports:
- "3000:3000"
networks:
- webnet
visualizer:
image: dockersamples/visualizer:stable
ports:
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
deploy:
placement:
constraints: [node.role == manager]
networks:
- webnet
networks:
webnet: