-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (63 loc) · 1.19 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
version: '2'
services:
db:
image: postgres
environment:
POSTGRES_DB: usgard
POSTGRES_USER: usgard
POSTGRES_PASSWORD: initial123
redis:
image: redis:3.2
web:
build: .
command: bundle exec hanami s --host '0.0.0.0'
volumes:
- .:/usgard
ports:
- "2300:2300"
depends_on:
- db
- mqtt
subscriber:
build: .
command: bundle exec ruby subscriber
volumes:
- .:/usgard
env_file:
- .env.development
environment:
- ANYCABLE_REDIS_URL=redis://redis:6379/0
depends_on:
- redis
- db
- mqtt
rpc:
build: .
command: bundle exec ruby anycable
volumes:
- .:/usgard
env_file:
- .env.development
environment:
- ANYCABLE_REDIS_URL=redis://redis:6379/0
- ANYCABLE_RPC_HOST=0.0.0.0:50051
depends_on:
- redis
- db
- mqtt
anycable:
image: 'anycable/anycable-go:0.3'
ports:
- "8080:8080"
environment:
- ADDR=0.0.0.0:8080
- REDIS=redis://redis:6379/0
- RPC=rpc:50051
depends_on:
- redis
- rpc
mqtt:
image: 'toke/mosquitto'
ports:
- "1883:1883"
- "9001:9001"