-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 961 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (40 loc) · 961 Bytes
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
version: '2'
services:
postgres:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: jacalloc
POSTGRES_PASSWORD: jacalloc123
volumes:
- ./postgres-data:/var/lib/postgresql/data
app:
build: .
ports:
- "5000:5000"
environment:
POSTGRES_URL: 'postgresql://jacalloc:jacalloc123@postgres:5432/jacalloc'
PYTHONUNBUFFERED: 0
OAUTH_PROJECT: 'broad-dsde-dev'
volumes:
- ./startup.sh:/app/startup.sh:ro
- ./app:/app
depends_on:
- postgres
links:
- postgres:postgres
working_dir: /app
entrypoint: ["./startup.sh"]
tests:
image: broadinstitute/python-requests:2.7
volumes:
- ./app/test:/test
- ./test-startup.sh:/test/test-startup.sh:ro
- ./broad-dsde-dev.json:/test/broad-dsde-dev.json:ro
depends_on:
- app
- postgres
links:
- app:app
entrypoint: bash /test/test-startup.sh