-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yaml
32 lines (30 loc) · 1.09 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: "3.2"
services:
# We start this service with just a bash shell. It doesn't run anything in the default mode,
# its essentially just a tty interface so we can run whatever commands we need to.
hyper-client-pool:
container_name: hyper-client-pool-dev
image: hyper-client-pool
build: ./
stdin_open: true
tty: true
command: bash
environment:
# We mount a volume (hyper-client-pool-target) at `/hyper-client-pool-target` and specify
# the CARGO_TARGET_DIR inside of it so that no files are synced between
# Docker and the local filesystem as it is very slow for MacOS.
#
# Also the target dir is nested (`/hyper-client-pool-target/target`) because `cargo clean`
# wants to delete the entire CARGO_TARGET_DIR, but can't if it's pointing to a volume.
CARGO_TARGET_DIR: "/hyper-client-pool-target/target"
volumes:
- .:/hyper-client-pool:cached
- target:/hyper-client-pool-target
- cargo:/usr/local/cargo
- ~/.ssh:/root/.ssh
httpbin:
image: vimagick/httpbin
restart: always
volumes:
cargo:
target: