-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
56 lines (52 loc) · 1.25 KB
/
docker-compose.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
services:
cli:
build:
context: ./docker
dockerfile: dev.Dockerfile
target: dev
args:
UID: ${UID:-1000}
GID: ${GID:-33}
depends_on:
dev-dagger-engine:
condition: service_completed_successfully
environment:
_EXPERIMENTAL_DAGGER_RUNNER_HOST: 'docker-container://dagger-engine.dev'
_EXPERIMENTAL_DAGGER_CLI_BIN: '/usr/local/bin/dagger'
DOCKER_HOST: 'tcp://docker:2375'
tty: true
working_dir: /srv
volumes:
- .:/srv
- ../../bin/dagger:/usr/local/bin/dagger
docker:
build:
context: ./docker
dockerfile: dev.Dockerfile
target: dev
command: [ 'socat', '-d', 'TCP-L:2375,fork', 'UNIX:/var/run/docker.sock' ]
expose:
- 2375
user: root
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
dev-dagger-engine:
build:
context: ./docker
dockerfile: dev.Dockerfile
target: dev-dagger-engine
args:
UID: ${UID:-1000}
command:
- ./hack/dev
container_name: dev-dagger-engine
privileged: true
depends_on:
- docker
environment:
DOCKER_HOST: 'tcp://docker:2375'
volumes:
- ../../:/srv
- go-cache:/home/dagger/.cache
volumes:
go-cache: