This repository has been archived by the owner on Mar 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
base.yml
87 lines (83 loc) · 2.25 KB
/
base.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
# docker-compose file for local development and testing with container image.
version: '3.2'
services:
db:
image: postgres
expose:
- "5432"
env_file:
- base.env
volumes:
- postgres-data-local:/var/lib/postgresql/data
- postgres-backup-local:/backups
# Lookup proxy service
lookupproxy:
image: uisautomation/lookupproxy
entrypoint: ["/tmp/wait-for-it.sh", "lookupproxy-db:5432", "--", "/tmp/start-devserver.sh"]
expose:
- "8080"
ports:
- "8080:8080"
depends_on:
- "lookupproxy-db"
- "hydra"
env_file:
- lookupproxy.env
volumes:
- ./start-devserver.sh:/tmp/start-devserver.sh
- ./wait-for-it.sh:/tmp/wait-for-it.sh
- ./lookupproxysettings.py:/usr/src/app/settings.py
lookupproxy-db:
image: postgres
env_file:
- lookupproxy.env
volumes:
- lookupproxy-postgres-data-local:/var/lib/postgresql/data
- lookupproxy-postgres-backup-local:/backups
# Hydra OAuth2 infrastructure
hydra:
image: oryd/hydra:v0.11.6-alpine
entrypoint: ["/tmp/start-hydra.sh"]
ports:
- "4444:4444"
- "4445:4445"
env_file:
- hydra.env
depends_on:
- hydra-db
volumes:
- "./start-hydra.sh:/tmp/start-hydra.sh/:ro"
hydra-consent:
image: uisautomation/experimental-mock-consent-app
env_file:
- ./hydra-consent.env
ports:
- "8090:8090"
# A service which waits for hydra to start and then creates the OAuth2
# clients.
hydra-create-clients:
image: oryd/hydra:v0.11.6-alpine
entrypoint: ["sh"]
command: ["-c", "apk update && apk add bash && /tmp/create-oauth2-clients.sh"]
env_file:
- hydra.env
depends_on:
- hydra
volumes:
- "./wait-for-it.sh:/tmp/wait-for-it.sh/:ro"
- "./create-oauth2-clients.sh:/tmp/create-oauth2-clients.sh/:ro"
hydra-db:
image: postgres
env_file:
- hydra.env
volumes:
- hydra-postgres-data-local:/var/lib/postgresql/data
- hydra-postgres-backup-local:/backups
volumes:
# Persistent volumes for postgres database data
postgres-data-local:
postgres-backup-local:
lookupproxy-postgres-data-local:
lookupproxy-postgres-backup-local:
hydra-postgres-data-local:
hydra-postgres-backup-local: