-
-
Notifications
You must be signed in to change notification settings - Fork 192
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
48 lines (41 loc) · 1.18 KB
/
docker-compose.dev.yml
File metadata and controls
48 lines (41 loc) · 1.18 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
# Dev mode: overlay for local development with hot reload.
# Usage: $ make run
# See the Makefile for all available commands (test, migrate, bash, etc.)
name: scancodeio
x-dev-env: &dev-env
DJANGO_RUNSERVER_HIDE_WARNING: "true"
x-dev-build: &dev-build
context: .
target: base
services:
web:
build: *dev-build
env_file:
- .env
environment:
<<: *dev-env
command: ./manage.py runserver --skip-checks 0.0.0.0:8001
volumes:
- ./scanpipe:/opt/scancodeio/scanpipe
ports:
- "8001:8001"
# Volume mount keeps code in sync. Restart manually with: make restart-worker
worker:
build: *dev-build
env_file:
- .env
environment:
<<: *dev-env
command: ./manage.py rqworker --worker-class scancodeio.worker.ScanCodeIOWorker
--queue-class scancodeio.worker.ScanCodeIOQueue
--verbosity 1
volumes:
- ./scanpipe:/opt/scancodeio/scanpipe
# Disable nginx in dev mode, the runserver serves requests directly.
nginx:
profiles:
- production
# Disable clamav in dev mode, not needed for local development.
clamav:
profiles:
- production