forked from discourse/message_bus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (59 loc) · 1.33 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
version: '3'
volumes:
bundle_config:
bundle:
redis_data:
postgres_data:
services:
tests:
build:
context: .
environment:
BUNDLE_TO: /usr/local/bundle
REDISURL: redis://redis:6379
PGHOST: postgres
PGUSER: postgres
PGPASSWORD: "1234"
volumes:
- .:/usr/src/app
- bundle_config:/home/src/app/.bundle
- bundle:/usr/local/bundle
depends_on:
- postgres
- redis
docs:
build:
context: .
command: yard server --bind 0.0.0.0 --reload
environment:
BUNDLE_TO: /usr/local/bundle
volumes:
- .:/usr/src/app
- bundle_config:/home/src/app/.bundle
- bundle:/usr/local/bundle
ports:
- 8808:8808
example:
build:
context: .
command: bash -c "cd examples/diagnostics && bundle install && bundle exec rackup --server puma --host 0.0.0.0"
environment:
BUNDLE_TO: /usr/local/bundle
REDISURL: redis://redis:6379
volumes:
- .:/usr/src/app
- bundle_config:/home/src/app/.bundle
- bundle:/usr/local/bundle
ports:
- 9292:9292
redis:
image: redis:5.0
volumes:
- redis_data:/data
postgres:
image: postgres:11.0
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=1234
- POSTGRES_DB=message_bus_test