-
Notifications
You must be signed in to change notification settings - Fork 59
/
docker-compose.yaml
75 lines (68 loc) · 1.64 KB
/
docker-compose.yaml
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
version: "3.7"
services:
account:
build:
context: .
dockerfile: ./account/app.dockerfile
depends_on:
- account_db
environment:
DATABASE_URL: postgres://spidey:123456@account_db/spidey?sslmode=disable
restart: on-failure
catalog:
build:
context: .
dockerfile: ./catalog/app.dockerfile
depends_on:
- catalog_db
environment:
DATABASE_URL: http://catalog_db:9200
restart: on-failure
order:
build:
context: .
dockerfile: ./order/app.dockerfile
depends_on:
- order_db
environment:
DATABASE_URL: postgres://spidey:123456@order_db/spidey?sslmode=disable
ACCOUNT_SERVICE_URL: account:8080
CATALOG_SERVICE_URL: catalog:8080
restart: on-failure
graphql:
build:
context: .
dockerfile: ./graphql/app.dockerfile
ports:
- 8000:8080
depends_on:
- account
- catalog
environment:
ACCOUNT_SERVICE_URL: account:8080
CATALOG_SERVICE_URL: catalog:8080
ORDER_SERVICE_URL: order:8080
restart: on-failure
account_db:
build:
context: ./account
dockerfile: ./db.dockerfile
environment:
POSTGRES_DB: spidey
POSTGRES_USER: spidey
POSTGRES_PASSWORD: 123456
restart: unless-stopped
catalog_db:
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4
environment:
ES_JAVA_OPTS: -Xms1g -Xmx1g
discovery.type: single-node
order_db:
build:
context: ./order
dockerfile: ./db.dockerfile
environment:
POSTGRES_DB: spidey
POSTGRES_USER: spidey
POSTGRES_PASSWORD: 123456
restart: unless-stopped