forked from JonJagger/cyber-dojo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (38 loc) · 896 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
# docker-compose build --no-cache
# docker-compose up
nginx:
build: .
dockerfile: ./docker/nginx_image/Dockerfile
ports:
- "80:80"
links:
- "web:cyberdojo_web"
web:
build: .
dockerfile: ./docker/server_image_rails/Dockerfile
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/bin/docker:/bin/docker
volumes_from:
- exercises:ro
- languages:ro
- tmp:rw
- katas:rw
ports:
- "3000:3000"
exercises:
build: ./exercises
entrypoint: /bin/sh
container_name: cyber-dojo-exercises-data-container
languages:
build: ./languages
entrypoint: /bin/sh
container_name: cyber-dojo-languages-data-container
tmp:
build: ./docker/tmp_image
entrypoint: /bin/sh
container_name: cyber-dojo-tmp-data-container
katas:
build: ./docker/katas_image
entrypoint: /bin/sh
container_name: cyber-dojo-katas-data-container