forked from portainer/portainer-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (36 loc) · 976 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
version: '2'
services:
proxy:
build: nginx/
container_name: "portainer-proxy"
ports:
- "80:80"
networks:
- local
templates:
image: portainer/templates
container_name: "portainer-templates"
networks:
- local
portainer:
image: portainer/portainer
restart: always
container_name: "portainer-app"
#Automatically choose 'Manage the Docker instance where Portainer is running' by adding <--host=unix:///var/run/docker.sock> to the command
command: --templates http://templates/templates.json
networks:
- local
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/portainer/data:/data
watchtower:
image: v2tec/watchtower
container_name: "portainer-watchtower"
command: --cleanup portainer-app portainer-watchtower portainer/templates
networks:
- local
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
local:
driver: bridge