-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
40 lines (39 loc) · 907 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
services:
gem:
build:
target: test
context: .
volumes:
- ./:/opt
environment:
- RABBITMQ_HOST=rabbitmq
command: ["tail", "-f", "/dev/null"]
rabbitmq:
image: rabbitmq:3.9.29-management
volumes:
- ./rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
ports:
- "15672:15672"
payments:
build:
context: examples/payments
volumes:
- ./examples/payments:/rails
ports:
- "3000:3000"
environment:
- RAILS_ENV=development
command: ["./bin/rails", "s", "-b", "0.0.0.0"]
payments-subscriber:
build:
context: examples/payments
volumes:
- ./examples/payments:/rails
environment:
- SECRET_KEY_BASE=a_secret_key_base
command: ["bundle", "exec", "harmoniser"]
start_dependencies:
image: dadarek/wait-for-dependencies
depends_on:
- rabbitmq
command: rabbitmq:5672