forked from harvard-lil/h2o
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (60 loc) · 1.27 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
57
58
59
60
61
62
63
version: '3'
services:
db:
image: postgres:9.5.15
volumes:
- db_data:/var/lib/postgresql/data:delegated
ports:
- "54320:5432"
web:
build:
context: .
dockerfile: ./docker/Dockerfile
image: h2o:0.12
tty: true
command: bash
environment:
- DOCKERIZED=true
- DB_HOSTNAME=db
- DB_USERNAME=postgres
- RAILS_PANDOC_EXPORT=true
extra_hosts:
- "h2o-dev.local:127.0.0.1"
volumes:
# Use a named volume for node_modules so mounting `.` to `/h2o/` doesn't clobber it.
# I attempted customizing `--modules-folder` with `.yarnrc`, but didn't work in all contexts.
# This solution isn't great, but works for now.
- node_modules:/h2o/node_modules
- .:/h2o
ports:
- "8000:8000"
depends_on:
- db
python:
build:
context: .
dockerfile: ./_python/Dockerfile
image: h2o-python:0.5
tty: true
command: bash
environment:
- DOCKERIZED=true
volumes:
- .:/app
ports:
- "8001:8000"
depends_on:
- db
nginx:
image: nginx:1.17.2
volumes:
- ./docker/h2o.conf:/etc/nginx/conf.d/default.conf
ports:
- 8002:80
- 8003:81
depends_on:
- web
- python
volumes:
db_data:
node_modules: