Files
swift-nio/docker/docker-compose.yaml
T

44 lines
945 B
YAML

version: "3"
services:
swift-nio:
image: swift-nio:latest
build:
context: .
dockerfile: Dockerfile.xenial
args:
version: 4.0
volumes:
- ..:/code
working_dir: /code
test:
depends_on:
- swift-nio
image: swift-nio:latest
command: swift test
volumes:
- ..:/code
working_dir: /code
echo:
depends_on:
- swift-nio
image: swift-nio:latest
ports:
- "9999:9999"
command: swift run NIOEchoServer 0.0.0.0 9999
volumes:
- ..:/code
working_dir: /code
http:
depends_on:
- swift-nio
image: swift-nio:latest
ports:
- "8888:8888"
command: swift run NIOHTTP1Server 0.0.0.0 8888
volumes:
- ..:/code
working_dir: /code