Files
swift-nio/docker/docker-compose.yaml
T
Max (Swift) Moiseev 8d4eb477ed Xenial and compose
* Docker work

- New image based on xenial.
- Simplified workflow with docker-compose
- Update the readme with docker-compose section
- Move docker related stuff to a dedicated folder

* Add a gen-cert.sh to the container image

* Document certificate generation and how to test all sample servers
2017-11-09 21:34:51 -08:00

55 lines
1.2 KiB
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
tls:
depends_on:
- swift-nio
image: swift-nio:latest
ports:
- "4433:4433"
command: swift run NIOTLSServer 0.0.0.0 4433
volumes:
- ..:/code
working_dir: /code