2019-10-25 05:53:29 +00:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
portainer:
|
|
|
|
image: portainerci/portainer:$PORTAINER_TAG
|
|
|
|
container_name: e2e-portainer
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2019-10-28 22:38:38 +00:00
|
|
|
networks:
|
|
|
|
- e2e-ci
|
2019-10-25 05:53:29 +00:00
|
|
|
|
|
|
|
cypress:
|
2019-10-28 03:51:59 +00:00
|
|
|
image: cypress/included:3.5.0
|
2019-10-25 05:53:29 +00:00
|
|
|
container_name: e2e-cypress
|
2019-10-28 23:51:26 +00:00
|
|
|
command: --browser chrome
|
2019-10-25 05:53:29 +00:00
|
|
|
depends_on:
|
|
|
|
- portainer
|
2019-10-28 03:51:59 +00:00
|
|
|
working_dir: /e2e
|
2019-10-25 05:53:29 +00:00
|
|
|
environment:
|
2019-10-28 22:38:38 +00:00
|
|
|
CYPRESS_baseUrl: http://e2e-portainer:9000
|
2019-10-25 05:53:29 +00:00
|
|
|
volumes:
|
2019-10-28 03:51:59 +00:00
|
|
|
- ./cypress:/e2e/cypress
|
|
|
|
- ./cypress.json:/e2e/cypress.json
|
2019-10-28 22:38:38 +00:00
|
|
|
networks:
|
|
|
|
- e2e-ci
|
|
|
|
|
|
|
|
manager1:
|
|
|
|
image: docker:dind
|
|
|
|
privileged: true
|
|
|
|
environment:
|
|
|
|
DOCKER_TLS_CERTDIR:
|
|
|
|
hostname: manager1
|
|
|
|
networks:
|
|
|
|
- e2e-ci
|
|
|
|
depends_on:
|
|
|
|
- manager2
|
|
|
|
- worker1
|
|
|
|
- worker2
|
|
|
|
manager2:
|
|
|
|
image: docker:dind
|
|
|
|
privileged: true
|
|
|
|
environment:
|
|
|
|
DOCKER_TLS_CERTDIR:
|
|
|
|
hostname: manager2
|
|
|
|
networks:
|
|
|
|
- e2e-ci
|
|
|
|
worker1:
|
|
|
|
image: docker:dind
|
|
|
|
privileged: true
|
|
|
|
environment:
|
|
|
|
DOCKER_TLS_CERTDIR:
|
|
|
|
hostname: worker1
|
|
|
|
networks:
|
|
|
|
- e2e-ci
|
|
|
|
worker2:
|
|
|
|
image: docker:dind
|
|
|
|
privileged: true
|
|
|
|
environment:
|
|
|
|
DOCKER_TLS_CERTDIR:
|
|
|
|
hostname: worker2
|
|
|
|
networks:
|
|
|
|
- e2e-ci
|
|
|
|
|
|
|
|
networks:
|
|
|
|
e2e-ci:
|
|
|
|
driver: bridge
|