-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
52 lines (49 loc) · 1 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
version: "2"
services:
cecos-caas-demo-proxy:
image: openfans/cecos-caas-demo-proxy:latest
container_name: "cecos-caas-demo-proxy"
ports:
- "80:80"
networks:
- local
cecos-caas-demo:
image: openfans/cecos-caas-demo:latest
container_name: "cecos-caas-demo"
hostname: cecos-caas-demo
command: --no-analytics -l service=openfans.cecos.caas.mgmt
networks:
- local
volumes:
- /tmp/manager_run/docker.sock:/var/run/docker.sock
manager1:
image: docker:dind
privileged: true
hostname: manager1
volumes:
- /tmp/manager_run:/var/run
networks:
- swarm
manager2:
image: docker:dind
privileged: true
hostname: manager2
networks:
- swarm
worker1:
image: docker:dind
privileged: true
hostname: worker1
networks:
- swarm
worker2:
image: docker:dind
privileged: true
hostname: worker2
networks:
- swarm
networks:
local:
driver: bridge
swarm:
driver: bridge