-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (58 loc) · 1.43 KB
/
docker-compose.yml
File metadata and controls
59 lines (58 loc) · 1.43 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
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "5000:5000"
working_dir: /app
volumes:
- ${LOG_DATA_DIRECTORY}:/app/log_data/
- ${RESULTS_DIRECTORY}:/app/analysis_results
environment:
DB_URL: "${DB_URL}"
CELERY_BROKER_URL: "${CELERY_BROKER_URL}"
LOG_DATA_DIRECTORY: "/app/log_data/"
RESULTS_DIRECTORY: "/app/analysis_results/"
APP_CMD: "waitress-serve --host=0.0.0.0 --port=5000 --call main:create_app"
depends_on:
- celery
- db
redis:
image: redis:alpine
ports:
- 6379:6379
celery:
build:
context: .
dockerfile: Dockerfile
entrypoint: []
command: celery -A server.make_celery worker --concurrency=4 --loglevel=info
volumes:
- ${LOG_DATA_DIRECTORY}:/app/log_data/
- ${RESULTS_DIRECTORY}:/app/analysis_results
environment:
DB_URL: "${DB_URL}"
CELERY_BROKER_URL: "${CELERY_BROKER_URL}"
LOG_DATA_DIRECTORY: "/app/log_data/"
RESULTS_DIRECTORY: "/app/analysis_results/"
depends_on:
- redis
- db
db:
image: postgres:alpine
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
TZ: ${TZ}
PGTZ: ${PGTZ}
volumes:
- db_data:/var/lib/postgresql/data
adminer:
image: adminer
restart: always
ports:
- 8081:8080
volumes:
db_data: