Forcing network name to be able to use docker-compose from inside testcafe container

(otherwise, containers started inside testcafe container are not on the same network)
This commit is contained in:
David Négrier 2021-12-04 11:01:40 +01:00
parent 720370a9fa
commit da1687bdf2
2 changed files with 10 additions and 2 deletions

View file

@ -1,4 +1,4 @@
version: "3"
version: "3.5"
services:
testcafe:
build: tests/
@ -13,3 +13,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
# security_opt:
# - seccomp:unconfined
networks:
default:
name: workadventure_dev

View file

@ -1,4 +1,4 @@
version: "3"
version: "3.5"
services:
reverse-proxy:
image: traefik:v2.5
@ -239,3 +239,7 @@ services:
# #- --cert=/root/letsencrypt/fullchain.pem
# #- --pkey=/root/letsencrypt/privkey.pem
# network_mode: host
networks:
default:
name: workadventure_dev