-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
73 lines (68 loc) · 1.53 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.3"
services:
web:
container_name: web_proteomics_qc_production
restart: always
user: ${UID}
build:
context: .
dockerfile: dockerfiles/Dockerfile
env_file:
- ./.env
environment:
- ENVIRONMENT=production
command: python server.py
volumes:
- ./app/:/app/
- ./lib/lrg-omics/:/lrg-omics/
- ${DATALAKE}:/datalake/
- ${MEDIA}:/appmedia/
- ${STATIC}:/static/
- ${COMPUTE}:/compute/
ports:
- "8080:8080"
depends_on:
- db
- redis
links:
- redis:redis
db:
container_name: db_proteomics_qc_production
restart: always
image: postgres:13.4
volumes:
- ${DB}:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
redis:
container_name: redis_proteomics_qc_production
restart: always
image: redis:alpine
ports:
- "6379:6379"
celery:
container_name: celery_proteomics_qc_production
restart: always
user: ${UID}
build:
context: .
dockerfile: dockerfiles/Dockerfile
command: bash -c "celery -A main worker -l info --concurrency ${CONCURRENCY}"
env_file:
- ./.env
volumes:
- ./app/:/app/
- ./lib/lrg-omics/:/lrg-omics/
- ${DATALAKE}:/datalake/
- ${COMPUTE}:/compute/
environment:
- DB_HOST=db
- DB_NAME=app
- DB_USER=postgres
- DB_PASS=postgres
depends_on:
- db
- redis
- web