-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-services.yml
62 lines (59 loc) · 1.24 KB
/
docker-compose-services.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
53
54
55
56
57
58
59
60
61
62
version: '3.2'
services:
hue:
image: bde2020/hdfs-filebrowser:3.11
deploy:
replicas: 1
mode: replicated
restart_policy:
condition: on-failure
placement:
constraints:
- node.role == manager
ports:
- target: 8088
published: 8020
protocol: tcp
mode: host
- target: 4040
published: 4041
protocol: tcp
mode: host
environment:
- NAMENODE_HOST=namenode
networks:
- network
agent:
image: portainer/agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
networks:
- agent_network
deploy:
mode: global
placement:
constraints: [node.platform.os == linux]
portainer:
image: portainer/portainer-ce
command: -H tcp://tasks.agent:9001 --tlsskipverify
ports:
- "9000:9000"
- "8000:8000"
volumes:
- portainer_data:/data
networks:
- agent_network
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
volumes:
portainer_data:
networks:
network:
external: true
agent_network:
driver: overlay
attachable: true