This repository has been archived by the owner on Jul 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.debug.yml
90 lines (90 loc) · 1.89 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
version: '2'
services:
api:
image: 'pushkin/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: 'pushkin/cron:latest'
build:
context: ./cron
dockerfile: Dockerfile
environment:
- 'AMPQ_ADDRESS=amqp://message-queue:5672'
- 'API_ADDRESS=http://api:3000/api'
- 'DATABASE_URL=INSERT_HERE'
- >-
TRANSACTION_DATABASE_URL=INSERT_HERE
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: 'pushkin/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=INSERT_HERE'
- >-
TRANSACTION_DATABASE_URL=INSERT_HERE
links:
- message-queue
- db
- transactiondb
message-queue:
image: 'rabbitmq:management'
expose:
- '5672'
ports:
- '8080:15672'
server:
image: 'pushkin/server:latest'
build:
context: ./server
dockerfile: Dockerfile
ports:
- '80:80'
links:
- api
transactiondb:
image: 'pushkin/transactiondb:latest'
build:
context: ./
dockerfile: Dockerfile.transactiondb
environment:
- POSTGRES_DB=transactions-dev
- POSTGRES_USER=postgres
expose:
- '5432'
ports:
- '5433:5432'