-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
83 lines (83 loc) · 1.82 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3'
services:
api-builder:
image: withinboredom/yarn:latest
volumes:
- ./src/api:/app/api
- api_modules:/app/api/node_modules
command: bash -c "cd /app/api && yarn"
api:
image: withinboredom/api:latest
environment:
- SMS
- CALL
- CALL_HOST
- STRIPE_KEY
- PLIVO_ID
- PLIVO_TOKEN
- DB_HOST
volumes:
- ./src/api:/app/api
- api_modules:/app/api/node_modules
depends_on:
- rethunk
- api-builder
ports:
- '1337:1337'
engine-builder:
image: withinboredom/composer:latest
volumes:
- ./src/engine:/var/www/html
- engine_vendor:/var/www/html/vendor
command: bash -c "cd /var/www/html && exec composer install"
engine:
image: withinboredom/engine:latest
environment:
- SMS
- CALL
- CALL_HOST
- STRIPE_KEY
- PLIVO_ID
- PLIVO_TOKEN
volumes:
- ./src/engine:/var/www/html
- engine_vendor:/var/www/html/vendor
depends_on:
- engine-builder
- rethunk
command: apache2-foreground
ports:
- '2200:80'
web-builder:
image: withinboredom/yarn:latest
environment:
- STRIPE_P_KEY
- API_HOST
- CALL
volumes:
- ./src/site:/app
- node_modules:/app/js/node_modules
command: bash -c "cd /app/js && yarn && node_modules/.bin/webpack -w"
restart: always
web:
image: withinboredom/site:latest
volumes:
- ./src/site:/app
- node_modules:/app/js/node_modules
depends_on:
- web-builder
command: /caddy -conf /Caddyfile
ports:
- '80:8080'
restart: always
rethunk:
image: rethinkdb:latest
ports:
- '8000:8080'
- '28015:28015'
command: rethinkdb --bind all
restart: always
volumes:
api_modules:
engine_vendor:
node_modules: