-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (43 loc) · 1010 Bytes
/
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
version: "3.8"
services:
devenv:
image: reenjii/devenv
restart: unless-stopped
build: ./devenv
container_name: devenv
working_dir: /home/developer
networks:
- devenv-network
ports:
- "4222:22" # ssh
- "80:8080" # http
- "10000:10000" # service
volumes:
# Persistent home folder
- type: bind
source: /home/ubuntu/devenv
target: /home/developer
# Bind docker socket to be able to call docker daemon from inside devenv
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
redis:
image: redis:6.2-alpine
restart: unless-stopped
container_name: redis
networks:
- devenv-network
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning
volumes:
- redisdata:/data
# Volumes
volumes:
redisdata:
driver: local
# Custom network
networks:
devenv-network:
driver: bridge
name: devenv-network