-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-develop.yml
More file actions
74 lines (71 loc) · 1.77 KB
/
Copy pathdocker-compose-develop.yml
File metadata and controls
74 lines (71 loc) · 1.77 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
services:
web:
container_name: proteomicsqc_web
init: true
user: ${UID}
image: proteomicsqc-local:latest
build:
context: .
dockerfile: dockerfiles/Dockerfile
env_file:
- ./.env
environment:
- ENVIRONMENT=develop
- ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0
- CSRF_TRUSTED_ORIGINS=http://localhost,http://127.0.0.1,http://0.0.0.0:8000
command: bash /app/start-web.sh /opt/conda/bin/python manage.py runserver 0.0.0.0:8000
volumes:
- ./app/:/app/
- ${DATALAKE}:/datalake/
- ${MEDIA}:/appmedia/
- ${STATIC}:/static/
- ${COMPUTE}:/compute/
ports:
- "8000:8000"
depends_on:
- db
- redis
links:
- redis:redis
db:
container_name: proteomicsqc_db
#restart: never
#image: postgres:13.4
image: postgres:14
volumes:
- ${DB}:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
redis:
container_name: proteomicsqc_redis
#restart: no
image: redis:alpine
ports:
- "6379:6379"
celery:
container_name: proteomicsqc_celery
init: true
#restart: no
user: ${UID}
image: proteomicsqc-local:latest
command: /opt/conda/bin/celery -A main worker -l info --concurrency ${CONCURRENCY}
env_file:
- ./.env
environment:
- ENVIRONMENT=develop
- ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0
- CSRF_TRUSTED_ORIGINS=http://localhost,http://127.0.0.1,http://0.0.0.0:8000
- DB_HOST=db
- DB_NAME=app
- DB_USER=postgres
- DB_PASS=postgres
volumes:
- ./app/:/app/
- ${DATALAKE}:/datalake/
- ${COMPUTE}:/compute/
depends_on:
- db
- redis
- web