forked from gameswithwords/gww
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.debug.yml
103 lines (103 loc) · 2.39 KB
/
docker-compose.debug.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '2'
services:
api:
image: gameswithwords/api:latest
expose:
- '3000'
build:
context: ./api
dockerfile: Dockerfile
volumes:
- ./api:/usr/src/app
command: bash start.debug.sh
depends_on:
- message-queue
environment:
- NODE_ENV=production
- AMPQ_ADDRESS=amqp://message-queue:5672
links:
- message-queue
cron:
image: gameswithwords/cron:latest
build:
context: ./cron
dockerfile: Dockerfile
environment:
- AMPQ_ADDRESS=amqp://message-queue:5672
- API_ADDRESS=http://api:3000/api
- DATABASE_URL=postgres://postgres@db:5432/dev
- TRANSACTION_DATABASE_URL=postgres://postgres@transactiondb:5432/transactions-dev
links:
- message-queue
- db
- transactiondb
- api
db:
image: postgres:latest
environment:
- POSTGRES_DB=dev
- POSTGRES_USER=postgres
expose:
- '5432'
ports:
- '5432:5432'
db-worker:
image: gameswithwords/db-worker:latest
build:
context: ./db-worker
dockerfile: Dockerfile
volumes:
- ./db-worker:/usr/src/app
command: bash start.debug.sh
depends_on:
- message-queue
environment:
- AMPQ_ADDRESS=amqp://message-queue:5672
- DATABASE_URL=postgres://postgres@db:5432/dev
- TRANSACTION_DATABASE_URL=postgres://postgres@transactiondb:5432/transactions-dev
links:
- message-queue
- db
- transactiondb
message-queue:
image: rabbitmq:management
expose:
- '5672'
ports:
- '8080:15672'
server:
image: gameswithwords/server:latest
build:
context: ./server
dockerfile: Dockerfile
ports:
- '80:80'
links:
- api
transactiondb:
image: gameswithwords/transactiondb:latest
build:
context: ./
dockerfile: Dockerfile.transactiondb
environment:
- POSTGRES_DB=transactions-dev
- POSTGRES_USER=postgres
expose:
- '5432'
ports:
- '5433:5432'
listener-quiz:
image: gameswithwords/listener-quiz:latest
build:
context: ./workers/listener-quiz
dockerfile: Dockerfile
volumes:
- ./workers/listener-quiz:/usr/src/app
command: bash start.debug.sh
depends_on:
- message-queue
environment:
- AMPQ_ADDRESS=amqp://message-queue:5672
- QUEUE=listener-quiz
links:
- message-queue