Files
swift-nio/docker/docker-compose.yaml
T
Norman Maurer 776a0698ba Mount ~/.ssh into docker image (#23)
Motivation:

We need to mount the ~/.ssh directory into the docker image as we use git@ to checkout our dependencies.

Modifications:

Use ~/.ssh as volume as well.

Result:

Be able to use docker images again.
2018-02-23 09:34:22 +00:00

48 lines
1.0 KiB
YAML

version: "3"
services:
swift-nio:
image: swift-nio:latest
build:
context: .
dockerfile: Dockerfile.xenial
args:
version: 4.0
volumes:
- ~/.ssh:/root/.ssh
- ..:/code
working_dir: /code
test:
depends_on:
- swift-nio
image: swift-nio:latest
command: swift test
volumes:
- ~/.ssh:/root/.ssh
- ..:/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:
- ~/.ssh:/root/.ssh
- ..:/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:
- ~/.ssh:/root/.ssh
- ..:/code
working_dir: /code