Repository navigation
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
140 lines (129 loc) · 3.29 KB
/
Copy pathdocker-compose-dev.yml
File metadata and controls
140 lines (129 loc) · 3.29 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: "3"
services:
app:
image: mavedb-api/mavedb-api:dev
build:
context: .
target: application
command: bash -c "uvicorn mavedb.server_main:app --host 0.0.0.0 --port 8000 --reload"
depends_on:
- db
- redis
- moto-init
env_file:
- settings/.env.dev
environment:
DB_HOST: db
DB_PORT: 5432
REDIS_IP: redis
REDIS_PORT: 6379
REDIS_SSL: "false"
LOG_CONFIG: dev
PYTHONPATH: "/variant-annotation:/code/src"
ports:
- "8002:8000"
ulimits:
nofile:
soft: 65536
hard: 65536
volumes:
- .:/code
- ../variant-annotation:/variant-annotation
- mavedb-seqrepo-dev:/usr/local/share/seqrepo
worker: &worker
image: mavedb-api/mavedb-worker:dev
build:
context: .
target: worker
command: bash -c "arq mavedb.worker.WorkerSettings --watch ./src"
env_file:
- settings/.env.dev
environment:
DB_HOST: db
DB_PORT: 5432
REDIS_IP: redis
REDIS_PORT: 6379
REDIS_SSL: "false"
LOG_CONFIG: dev
PYTHONPATH: "/variant-annotation:/code/src"
ulimits:
nofile:
soft: 65536
hard: 65536
volumes:
- .:/code
- ../variant-annotation:/variant-annotation
- mavedb-seqrepo-dev:/usr/local/share/seqrepo
depends_on:
- db
- redis
- moto-init
# Runs only start_pipeline and create_variants_for_score_set (the fast-lane queue), as in production, so
# variant creation never waits behind mapping jobs on the main worker.
fast-worker:
<<: *worker
command: bash -c "arq mavedb.worker.FastLaneWorkerSettings --watch ./src"
dcd-mapping:
build: ../dcd_mapping
platform: linux/amd64
image: dcd-mapping:dev
command: bash -c "uvicorn api.server_main:app --host 0.0.0.0 --port 8000 --reload"
depends_on:
- db
- seqrepo
env_file:
- settings/.env.dev
ports:
- "8004:8000"
volumes:
- ../dcd_mapping:/usr/src/app
- mavedb-seqrepo-dev:/usr/local/share/seqrepo
cdot-rest:
build: ../cdot_rest
image: cdot-rest:dev
command: bash -c "gunicorn cdot_rest.wsgi:application --bind 0.0.0.0:8000"
env_file:
- settings/.env.dev
depends_on:
- redis
- seqrepo
ports:
- "8006:8000"
volumes:
- mavedb-seqrepo-dev:/usr/local/share/seqrepo
db:
image: postgres:15
env_file:
- settings/.env.dev
ports:
- "5434:5432"
volumes:
- mavedb-data-dev-15:/var/lib/postgresql/data
redis:
image: redis:7.2.3
env_file:
- settings/.env.dev
ports:
- "6381:6379"
volumes:
- mavedb-redis-dev:/data
# AWS mock.
moto:
image: motoserver/moto:latest
ports:
- "5001:5000"
moto-init:
# One-shot: create the upload bucket once moto is up (moto has no auto-create).
# A raw PUT is all it takes; --retry-all-errors waits out moto's startup.
image: curlimages/curl:latest
depends_on:
- moto
command: -sf --retry 10 --retry-all-errors --retry-delay 1 -X PUT http://moto:5000/score-set-csv-uploads-dev
seqrepo:
image: biocommons/seqrepo:2024-12-20
volumes:
- mavedb-seqrepo-dev:/usr/local/share/seqrepo
volumes:
mavedb-data-dev-15:
mavedb-redis-dev:
mavedb-seqrepo-dev: