-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1.22 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
version: '3.2'
services:
devenv:
image: stono/devenv
network_mode: 'service:dind'
volumes:
- home:/home/docker
- ~/.ssh:/home/docker/.ssh:ro
- ~/.gitconfig:/home/docker/.gitconfig:ro
- ./host:/host
# If you want to edit files on your host
# change this to ./code:/storage, it will be
# slower though as bind mounts suck.
- ./code:/storage
depends_on:
- dind
- redis
environment:
- DOCKER_HOST=tcp://127.0.0.1:2375
dind:
image: docker:stable-dind
restart: always
volumes:
# If you want to edit files on your host
# change this to ./code:/storage, it will be
# slower though as bind mounts suck.
- ./code:/storage
- docker:/var/lib/docker
privileged: true
# May need to change this depending on the output
# of docker info | grep -i "storage driver"
command: --storage-driver=overlay
ports:
- 6379:6379 # Redis
# Apps
- 5000:5000
- 9000:9000
- 9001:9001
- 9002:9002
- 9003:9003
# Examples of services exposed on the devenv localhost
redis:
image: redis:4.0.1
network_mode: 'service:dind'
restart: always
volumes:
code:
docker:
home: