Files
builder/Ubuntu/compose.yml
T

58 lines
1.1 KiB
YAML

x-test-image: &test-image
build:
context: .
args:
SOURCE_VERSION: ${SOURCE_VERSION:-local}
image: ${IMAGE:-ubuntu-xray-transparent-test}
volumes:
- ./test-runner.sh:/tmp/test-runner.sh:ro
services:
ipv6-default-off:
<<: *test-image
cap_add:
- NET_ADMIN
environment:
XRAY_ENABLED: "0"
XRAY_IPV6_ENABLED: "0"
S6_LOGGING: "0"
command:
- bash
- /tmp/test-runner.sh
- ipv6-default-off
ipv6-enabled:
<<: *test-image
environment:
XRAY_ENABLED: "0"
XRAY_IPV6_ENABLED: "1"
S6_LOGGING: "0"
command:
- bash
- /tmp/test-runner.sh
- ipv6-enabled
proxy-on:
<<: *test-image
cap_add:
- NET_ADMIN
env_file:
- .env
environment:
S6_LOGGING: "0"
command:
- bash
- /tmp/test-runner.sh
- proxy-on
proxy-off:
<<: *test-image
environment:
XRAY_ENABLED: "0"
XRAY_IPV6_ENABLED: ${XRAY_IPV6_ENABLED:-0}
S6_LOGGING: "0"
command:
- bash
- /tmp/test-runner.sh
- proxy-off