-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdocker-compose-worker.yml
More file actions
32 lines (31 loc) · 955 Bytes
/
docker-compose-worker.yml
File metadata and controls
32 lines (31 loc) · 955 Bytes
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
services:
orion-worker:
build:
context: .
dockerfile: Dockerfile
container_name: orion-worker
command: [celery, "-A", "celery_worker.celery_app", "worker", "--loglevel=info", "-Q", "orion"]
env_file:
- path: .env
required: false
environment:
# override paths from env, use paths volumes are mounted to inside the container
- ORION_STORAGE=/ORION_storage
- ORION_GRAPHS=/ORION_graphs
- ORION_LOGS=/ORION_logs
- SHARED_SOURCE_DATA_PATH=/tmp/shared_data
# specific to celery
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
volumes:
- .:/ORION
- "${ORION_STORAGE}:/ORION_storage"
- "${ORION_GRAPHS}:/ORION_graphs"
- "${ORION_LOGS}:/ORION_logs"
- "${SHARED_SOURCE_DATA_PATH}:/tmp/shared_data"
user: 1000:7474
networks:
- app-network
networks:
app-network:
external: true