-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-test.yml
55 lines (51 loc) · 1.01 KB
/
docker-compose-test.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
version: "3.3"
services:
web:
user: ${UID}
build:
context: .
dockerfile: dockerfiles/Dockerfile
env_file:
- ./.env
environment:
- ENVIRONMENT=develop
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./app/:/app/
ports:
- "8000:8000"
depends_on:
- db
- redis
links:
- redis:redis
db:
image: postgres:13.4
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
redis:
image: redis:alpine
ports:
- "6379:6379"
celery:
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/
environment:
- DB_HOST=db
- DB_NAME=app
- DB_USER=postgres
- DB_PASS=postgres
depends_on:
- db
- redis
- web