forked from int-brain-lab/IBL-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose-ingest.yml
49 lines (46 loc) · 1.25 KB
/
docker-compose-ingest.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
version: '2.4'
services:
pg:
image: postgres:13.1
environment:
- POSTGRES_PASSWORD=${ALYX_DB_PASSWORD?set ALYX_DB_PASSWORD in .env}
healthcheck:
test: [ "CMD", "/usr/bin/psql", "-U", "postgres", "-c", "\\l" ]
timeout: 5s
retries: 60
interval: 1s
volumes:
- /tmp/postgresql/data:/var/lib/postgresql/data
networks:
- ibl-dev
datajoint-ingest:
build:
context: .
dockerfile: Dockerfile.ingest
env_file: .env
init: true
depends_on:
pg:
condition: service_healthy
environment:
- PGUSER=${ALYX_DB_USER?set ALYX_DB_USER in .env}
- PGHOST=${ALYX_DB_HOST?set ALYX_DB_HOST in .env}
- PGPASSWORD=${ALYX_DB_PASSWORD?set ALYX_DB_PASSWORD in .env}
- ALYX_DL_DATE=${ALYX_DL_DATE?set ALYX_DL_DATE in .env}
- ALYX_DL_USER=${ALYX_DL_USER?set ALYX_DL_USER in .env}
- ALYX_DL_PASSWORD=${ALYX_DL_PASSWORD?set ALYX_DL_PASSWORD in .env}
volumes:
- ./notebooks:/notebooks
- ./images:/images
- .:/src/IBL-pipeline
- ./data:/data
- ./root/.one_params:/root/.one_params
- /tmp/alyx_data:/tmp
ports:
- "8888:8888"
- "8889:8889"
networks:
- ibl-dev
command: ["dev"]
networks:
ibl-dev: