-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
61 lines (57 loc) · 1.57 KB
/
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
services:
database:
image: team6/database
restart: always
ports:
- "5454:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U docker"]
interval: 10s
timeout: 5s
retries: 5
extra_hosts:
- "host.docker.internal:host-gateway"
mongo:
image: mongo
restart: always
ports:
- "27018:27017"
extra_hosts:
- "host.docker.internal:host-gateway"
functions:
image: team6/functions
restart: always
ports:
- "3002:3000"
environment:
- GRAPHILE_CONNECTION_STRING=postgresql://docker:team6@host.docker.internal:5454/graphile
depends_on:
database:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"
workers:
image: team6/workers
restart: always
environment:
- GRAPHILE_CONNECTION_STRING=postgresql://docker:team6@host.docker.internal:5454/graphile
- FUNCTION_SERVER_URL=http://host.docker.internal:3002/calls
- MONGO_CONNECTION_STRING=mongodb://host.docker.internal:27018/loggger
depends_on:
database:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"
ingress:
image: team6/ingress
restart: always
ports:
- "3001:3000"
environment:
- GRAPHILE_CONNECTION_STRING=postgresql://docker:team6@host.docker.internal:5454/graphile
- MONGO_CONNECTION_STRING=mongodb://host.docker.internal:27018/loggger
depends_on:
database:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"