-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
56 lines (50 loc) · 1.87 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
version: "3.6"
services:
postgres:
build:
context: ./postgres
command: postgres -c 'port=5001' -c 'temp_buffers=200MB' -c 'work_mem=200MB' -c 'max_connections=100' -c 'random_page_cost=1'
environment:
- PGPORT=5001
- POSTGRES_PASSWORD=postgres
# the follwing variables can be defined to enable a feature that displays temporary credentials fpr h5ad study upload by users
- S3_BUCKET
- AWS_REGION
- USER_STUDY_UPLOAD_CONFIGURED
# AWS credentials - can be omitted if deployed in AWS context (e.g. role is assigned to EC2 / ECS container etc.)
# AWS access is required if study h5ad files shall be stored in AWS only, not necessary by default.
#- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
#- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
#- AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}
ports:
- "5001:5001"
restart: always
volumes:
- postgresdata:/var/lib/postgresql/data
- ./database_schema:/database_schema
- ./scratch:/h5ad_store
postgraphile:
build:
context: ./postgraphile
restart: always
environment:
# study-level permissions are not in effect until permissions are set in the study table,
# these are demo examples for testing:
- AUTH_HEADER_NAME
# - AUTH_HEADER_MOCK_VALUE=Group1;Group2
- DATABASE_URL=postgres://postgraphile:postgraphile@postgres:5001/postgres
# the postgraphile database user is sufficient for the API;
# during development it is helpful to enable database schema watching in postgres,
# which needs more permissions. (optional environment variable)
- OWNER_DATABASE_URL=postgres://postgres:postgres@postgres:5001/postgres
- PORT=5000
ports:
- "5000:5000"
client:
restart: always
build:
context: ./client
ports:
- "5002:5002"
volumes:
postgresdata: