added portainer
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Giles Bradshaw 2020-05-01 14:54:08 +01:00
parent 43943bafb3
commit a1678d42b1
1 changed files with 38 additions and 1 deletions

View File

@ -343,7 +343,44 @@ services:
volumes: volumes:
- mongo-chat:/data/db - mongo-chat:/data/db
command: mongod --smallfiles --replSet rs0 --oplogSize 128 command: mongod --smallfiles --replSet rs0 --oplogSize 128
portainer:
image: portainer/portainer:1.23.2
command: -H tcp://tasks.portainer-agent:9001 --tlsskipverify
# command: -H unix:///var/run/docker.sock
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
restart_policy:
condition: any
ports:
- 9000:9000
- 8000:8000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
networks:
#- proxy
- appnet
portainer-agent:
image: portainer/agent:1.5.1
depends_on:
- portainer
environment:
# REQUIRED: Should be equal to the service name prefixed by "tasks." when
# deployed inside an overlay network
AGENT_CLUSTER_ADDR: tasks.portainer-agent
# AGENT_PORT: 9001
# LOG_LEVEL: debug
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
networks:
- appnet
deploy:
mode: global
placement:
constraints: [node.platform.os == linux]
volumes: volumes:
gitea-app: gitea-app:
drone: drone: