forked from opensafely-core/job-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
41 lines (38 loc) · 1.08 KB
/
docker-compose.yaml
File metadata and controls
41 lines (38 loc) · 1.08 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
version: "3.7"
services:
jobrunner-run:
build: .
image: ghcr.io/opensafely-core/job-runner:latest
init: true
restart: unless-stopped
env_file: .env
environment:
&jobrunner_environment
# Working directory (see the volume mounts below)
- WORK_DIR=/work_dir
volumes:
&jobrunner_volumes
- type: bind
source: ${MEDIUM_PRIVACY_STORAGE_BASE}
target: ${MEDIUM_PRIVACY_STORAGE_BASE}
- type: bind
source: ${HIGH_PRIVACY_STORAGE_BASE}
target: ${HIGH_PRIVACY_STORAGE_BASE}
- type: bind
source: //var/run/docker.sock
target: /var/run/docker.sock
- type: volume
source: job_runner_work_dir
target: /work_dir
command: python -m jobrunner.run
jobrunner-sync:
image: ghcr.io/opensafely-core/job-runner:latest
init: true
restart: unless-stopped
# Re-use environment and volume config from above
env_file: .env
environment: *jobrunner_environment
volumes: *jobrunner_volumes
command: python -m jobrunner.sync
volumes:
job_runner_work_dir: