This repository was archived by the owner on Jul 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (83 loc) · 1.86 KB
/
docker-compose.yml
File metadata and controls
84 lines (83 loc) · 1.86 KB
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
# docker-compose file for local development and testing with container image.
version: '3.2'
services:
devserver: &devserver
build:
context: .
dockerfile: compose/Dockerfile
expose:
- "8080"
ports:
- "8080:8080"
depends_on:
- "db"
- "debugsmtp"
- "hydra"
# For devserver, mount the local directory inside the container as a volume
# to allow local changes to be reflected without having to re-build the
# container.
volumes:
- type: bind
source: ./
target: /usr/src/app
read_only: true
env_file:
- compose/base.env
tox:
<<: *devserver
entrypoint: ["tox"]
command: []
env_file:
- compose/base.env
- compose/tox.env
volumes:
- type: bind
source: ./
target: /usr/src/app
read_only: true
- type: volume
source: tox-data
target: /tmp/tox-data
migrate:
<<: *devserver
entrypoint: ["python", "./manage.py"]
command: ["migrate"]
shell:
<<: *devserver
entrypoint: ["python", "./manage.py"]
command: ["shell"]
db:
image: postgres
env_file:
- compose/base.env
consent:
image: uisautomation/experimental-mock-consent-app
env_file:
- compose/hydra-consent.env
ports:
- "8090:8090"
hydra:
image: oryd/hydra:v0.11.1-alpine
entrypoint: ["/tmp/start-hydra.sh"]
ports:
- "4444:4444"
- "4445:4445"
env_file:
- compose/hydra.env
depends_on:
- hydradb
- consent
volumes:
- "./compose/start-hydra.sh:/tmp/start-hydra.sh/:ro"
hydradb:
image: postgres
env_file:
- compose/hydra.env
debugsmtp:
image: mailhog/mailhog
ports:
- "8025:8025"
volumes:
# A persistent volume for tox to store its stuff. This allows caching of
# virtualenvs between runs.
tox-data: