-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
75 lines (69 loc) · 1.46 KB
/
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
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'
services:
dev:
build:
context: .
dockerfile: Dockerfile.dev
command: /app/scheduler
volumes:
- .:/src/scheduler-for-ocf
expose:
- 8000
ports:
- 8000:8000
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres-dev/dev?sslmode=disable
- UAA_ENDPOINT=http://uaa:8001
- CF_ENDPOINT=http://cf-api:8002
- CLIENT_ID=scheduler
- CLIENT_SECRET=lolsekrat
links:
- postgres-dev
- uaa
- cf-api
test:
build:
context: .
dockerfile: Dockerfile.test
command: make test
volumes:
- .:/src/scheduler-for-ocf
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres-test/test?sslmode=disable
links:
- postgres-test
postgres-dev:
image: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=dev
- POSTGRES_PASSWORD=postgres
postgres-test:
image: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=test
- POSTGRES_PASSWORD=postgres
uaa:
build:
context: .
dockerfile: Dockerfile.uaa
command: /app/uaa
expose:
- 8001
ports:
- 8001:8001
cf-api:
build:
context: .
dockerfile: Dockerfile.cfapi
command: /app/cf-api
environment:
- UAA_ENDPOINT=http://uaa:8001
- CF_ENDPOINT=http://cf-api:8002
links:
- uaa
expose:
- 8002
ports:
- 8002:8002