diff --git a/docker-compose.yml b/docker-compose.yml index 7d1605b..e69e242 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -343,7 +343,44 @@ services: volumes: - mongo-chat:/data/db 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: gitea-app: drone: