-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
45 lines (39 loc) · 997 Bytes
/
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
33
34
35
36
37
38
39
40
41
42
43
44
# run with:
# `docker compose up --abort-on-container-exit --exit-code-from test_client`
#
# When the container stop prematurely, do a full `docker compose down` and `docker compose up` as caching can cause errors
version: "3"
services:
dind:
image: docker:dind
privileged: true
volumes:
- certs_ca:/certs/ca
- certs_client:/certs/client
environment:
- DOCKER_TLS_CERTDIR=/certs
networks:
common:
aliases:
- docker
test_client:
image: docker:latest
volumes:
- certs_client:/certs/client:ro
- .:/app_origin:ro
- ./plugin/config.json:/plugin/config.json:ro
environment:
- DOCKER_TLS_CERTDIR=/certs
entrypoint: ["/app_origin/test_client_entrypoint.sh"]
networks:
common:
aliases:
# apparently underscores aren't allowed (ノಠ益ಠ)ノ彡┻━┻
- test-client
depends_on:
- dind
networks:
common:
volumes:
certs_ca:
certs_client: