-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.yml
34 lines (31 loc) · 880 Bytes
/
admin.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
# 101
version: '3'
services:
portainer:
container_name: portainer
image: portainer/portainer-ce
command: -H unix:///var/run/docker.sock
ports:
- 9000:9000
- 8000:8000
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ${VOLUME_ROOT}/portainer:/data
restart: unless-stopped
portainer_edge_agent:
image: portainer/agent
container_name: portainer_agent
command: -H unix:///var/run/docker.sock
volumes:
- /:/host
- /var/lib/docker/volumes:/var/lib/docker/volumes
- /var/run/docker.sock:/var/run/docker.sock
- ${VOLUME_ROOT}/portainer_agent:/data
environment:
- EDGE=1
- EDGE_ID=${EDGE_ID_ADMIN}
- EDGE_KEY=${EDGE_KEY_ADMIN}
- EDGE_INSECURE_POLL=1
restart: unless-stopped