-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
77 lines (77 loc) · 2.13 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
73
74
75
76
77
version: "3"
services:
web:
build:
context: .
args:
- "APP_ENVIRONMENT=local-web"
- "SAUCE_OS=${SAUCE_OS:-linux}"
command: hepdata run -h 0.0.0.0 -p 5000 --debugger --reload
ports:
- "5000:5000"
- "5555:5555"
environment:
- "APP_ENVIRONMENT=local"
- "APP_BROKER_URL=redis://cache:6379/0"
- "APP_CACHE_REDIS_URL=redis://cache:6379/0"
- "APP_CACHE_TYPE=redis"
- "APP_CELERY_RESULT_BACKEND=redis://cache:6379/2"
- "APP_OPENSEARCH_HOST=os:9200"
- "APP_SECRET_KEY=CHANGE_ME"
- "APP_ACCOUNTS_SESSION_REDIS_URL=redis://cache:6379/1"
- "APP_SQLALCHEMY_DATABASE_URI=postgresql://hepdata:hepdata@db/hepdata"
- "SAUCE_USERNAME=${SAUCE_USERNAME}"
- "SAUCE_ACCESS_KEY=${SAUCE_ACCESS_KEY}"
- "FLASK_ENV=development"
- "FLASK_DEBUG=1"
read_only: false
volumes:
- ".:/code"
worker:
build: .
command: "celery -A hepdata.celery worker -l info -E -B -Q celery,priority,datacite"
environment:
- "APP_BROKER_URL=redis://cache:6379/0"
- "APP_CACHE_REDIS_URL=redis://cache:6379/0"
- "APP_CACHE_TYPE=redis"
- "APP_CELERY_RESULT_BACKEND=redis://cache:6379/2"
- "APP_OPENSEARCH_HOST=os:9200"
- "APP_SECRET_KEY=CHANGE_ME"
- "APP_ACCOUNTS_SESSION_REDIS_URL=redis://cache:6379/1"
- "APP_SQLALCHEMY_DATABASE_URI=postgresql://hepdata:hepdata@db/hepdata"
read_only: false
volumes:
- ".:/code"
cache:
image: redis
read_only: true
ports:
- "6379:6379"
db:
build: ./docker/db/
command: postgres
environment:
- "POSTGRES_USER=hepdata"
- "POSTGRES_PASSWORD=hepdata"
- "POSTGRES_DB=hepdata"
- "POSTGRES_TEST_DB=hepdata_test"
ports:
- "5432:5432"
read_only: false
os:
image: opensearchproject/opensearch:2.11.0
read_only: false
environment:
- node.name=os01
- cluster.name=hepdata
- cluster.initial_master_nodes=os01
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- plugins.security.disabled=true
ports:
- "9200:9200"
- "9600:9600"
converter:
image: hepdata/hepdata-converter-ws
ports:
- "5500:5000"
read_only: false