-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathdocker-compose.yml
43 lines (43 loc) · 919 Bytes
/
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
version: "3"
services:
python-fe:
# replace username/repo:tag with your name and image details
image: kammana/python-app:0.0.2
deploy:
replicas: 5
restart_policy:
condition: on-failure
resources:
limits:
cpus: "0.1"
memory: 50M
ports:
- "80:5000"
networks:
- javahome
redis-be:
# replace username/repo:tag with your name and image details
image: redis
deploy:
replicas: 1
restart_policy:
condition: on-failure
resources:
limits:
cpus: "0.1"
memory: 50M
networks:
- javahome
visualizer:
image: dockersamples/visualizer:stable
ports:
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
deploy:
placement:
constraints: [node.role == manager]
networks:
- javahome
networks:
javahome: