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: services:
testcafe: testcafe:
build: tests/ build: tests/
@ -13,3 +13,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
# security_opt: # security_opt:
# - seccomp:unconfined # - seccomp:unconfined
networks:
default:
name: workadventure_dev

View File

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