Initial Awawawa
This commit is contained in:
45
docker/compose.yml
Normal file
45
docker/compose.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
# Integration test topology: one target (exit gateway) and two clients.
|
||||
# Run via docker/run-tests.sh (or "make docker-test").
|
||||
name: patchbay-test
|
||||
|
||||
x-common: &common
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile
|
||||
image: patchbay-test
|
||||
volumes:
|
||||
- shared:/shared
|
||||
networks: [pbnet]
|
||||
init: true
|
||||
# Tunnel tests create veth pairs and network namespaces.
|
||||
privileged: true
|
||||
|
||||
services:
|
||||
target:
|
||||
<<: *common
|
||||
hostname: target
|
||||
environment:
|
||||
PB_ROLE: target
|
||||
PB_MAILHOST: log
|
||||
ports:
|
||||
- "127.0.0.1:18443:8443" # web UI for manual checks
|
||||
|
||||
client1:
|
||||
<<: *common
|
||||
hostname: client1
|
||||
environment:
|
||||
PB_ROLE: client
|
||||
depends_on: [target]
|
||||
|
||||
client2:
|
||||
<<: *common
|
||||
hostname: client2
|
||||
environment:
|
||||
PB_ROLE: client
|
||||
depends_on: [target]
|
||||
|
||||
volumes:
|
||||
shared:
|
||||
|
||||
networks:
|
||||
pbnet:
|
||||
Reference in New Issue
Block a user