-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
42 lines (42 loc) · 1.17 KB
/
docker-compose.yaml
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
version: "3.7"
services:
server:
image: labflow/script-runner-example:latest
build:
dockerfile: ./docker/Dockerfile.example
context: ./
args:
SERVER_VERSION: local+devcontainer
command:
- "sh"
- "-c"
- "python3 -m flask run --host=0.0.0.0 --port=5000"
environment:
- FLASK_ENV=development
- PORT=5000
- PROPAGATE_EXCEPTIONS=True
- "SERVER_NAME=${SERVER_NAME}"
- "AUTH_PROVIDER=none"
- "CELERY_BROKER_URL=redis://:${REDIS_PASSWORD}@redis:6379"
- "CELERY_RESULT_BACKEND=redis://:${REDIS_PASSWORD}@redis:6379"
ports:
- 5000:5000
worker:
image: labflow/script-runner-example:latest
build:
dockerfile: ./docker/Dockerfile.example
context: ./
args:
SERVER_VERSION: local+devcontainer
command:
- "sh"
- "-c"
- "python3 -m celery -A script_runner.analysis worker"
environment:
- "CELERY_BROKER_URL=redis://:${REDIS_PASSWORD}@redis:6379"
- "CELERY_RESULT_BACKEND=redis://:${REDIS_PASSWORD}@redis:6379"
redis:
image: redis:6-alpine
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- 6379:6379