forked from WycliffeAssociates/DOC
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·138 lines (138 loc) · 4.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·138 lines (138 loc) · 4.21 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
services:
redis:
image: redis:latest
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 1s
timeout: 3s
retries: 5
restart: unless-stopped
usfmparserapi:
image: wycliffeassociates/doc-usfmparser:${IMAGE_TAG}
environment:
IMAGE_TAG: ${IMAGE_TAG:-local}
ports:
- ${DOTNET_API_PORT:-8081}:80
volumes:
- shared_assets:/app/assets_download
- shared_working:/app/working_temp
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health/status"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
api:
image: wycliffeassociates/doc:${IMAGE_TAG}
env_file:
- .env
environment:
DATA_API_URL: ${DATA_API_URL:-https://api.bibleineverylanguage.org/v1/graphql}
BACKEND_CORS_ORIGINS: ${BACKEND_CORS_ORIGINS}
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis:6379/0}
CELERY_RESULT_BACKEND: ${CELERY_RESULT_BACKEND:-redis://redis:6379/0}
FROM_EMAIL_ADDRESS: ${FROM_EMAIL_ADDRESS}
SMTP_PASSWORD: ${SMTP_PASSWORD}
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT}
SEND_EMAIL: ${SEND_EMAIL}
ports:
- ${API_HOST_PORT:-5005}:5005
command: gunicorn --name doc:entrypoints:app --worker-class uvicorn.workers.UvicornWorker --pythonpath /app/backend --conf /app/backend/gunicorn.conf.py doc.entrypoints.app:app
volumes:
- shared:/app/document_output
- shared_assets:/app/assets_download
- shared_en_rg:/app/en_rg
depends_on:
usfmparserapi:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5005/health/status"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
restart: unless-stopped
worker:
image: wycliffeassociates/doc:${IMAGE_TAG}
command: celery --app=doc.domain.worker.app worker --hostname=worker@%h --loglevel=DEBUG -E
environment:
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis:6379/0}
CELERY_RESULT_BACKEND: ${CELERY_RESULT_BACKEND:-redis://redis:6379/0}
FROM_EMAIL_ADDRESS: ${FROM_EMAIL_ADDRESS}
SMTP_PASSWORD: ${SMTP_PASSWORD}
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT}
SEND_EMAIL: ${SEND_EMAIL}
volumes:
- shared:/app/document_output
- shared_working:/app/working_temp
- shared_en_rg:/app/en_rg
- shared_assets:/app/assets_download
depends_on:
api:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: celery -A doc.domain.worker.app inspect ping
interval: 5s
timeout: 5s
retries: 10
start_period: 15s
restart: unless-stopped
celery-dashboard:
image: mher/flower
environment:
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis:6379/0}
CELERY_RESULT_BACKEND: ${CELERY_RESULT_BACKEND:-redis://redis:6379/0}
FLOWER_PORT: 5555
ports:
- ${CELERY_DASHBOARD_HOST_PORT:-5555}:5555
depends_on:
redis:
condition: service_healthy
worker:
condition: service_healthy
restart: unless-stopped
fileserver:
build: ./web
ports:
- ${FILESERVER_HOST_PORT:-8089}:80
volumes:
- shared:/srv/content
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 5s
timeout: 5s
retries: 10
frontend:
image: wycliffeassociates/doc-ui:${IMAGE_TAG}
environment:
PUBLIC_BACKEND_API_URL: ${PUBLIC_BACKEND_API_URL:-http://localhost:5005}
PUBLIC_FILE_SERVER_URL: ${PUBLIC_FILE_SERVER_URL:-http://localhost:8089}
PUBLIC_LOGROCKET_ID: ${PUBLIC_LOGROCKET_ID:-ct7zyg/bible-in-every-language}
ports:
- ${FRONTEND_HOST_PORT:-8001}:80
depends_on:
api:
condition: service_healthy
worker:
condition: service_healthy
fileserver:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 5s
timeout: 5s
retries: 10
volumes:
shared:
shared_working:
shared_en_rg:
shared_assets: