-
-
Notifications
You must be signed in to change notification settings - Fork 192
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
35 lines (29 loc) · 879 Bytes
/
docker-compose.dev.yml
File metadata and controls
35 lines (29 loc) · 879 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
33
34
35
# Dev mode, https://docs.docker.com/compose/how-tos/file-watch/
# Mount the local scanpipe/ directory in the containers
# This can be used to refresh fixtures from the docker container:
# $ docker compose -f docker-compose.yml -f docker-compose.dev.yml up
# $ docker compose -f docker-compose.yml -f docker-compose.dev.yml run --rm web bash
# $ SCANCODEIO_TEST_FIXTURES_REGEN=1 ./manage.py test
name: scancodeio
x-dev-env: &dev-env
SCANCODEIO_DEBUG: "True"
GUNICORN_RELOAD_FLAG: "--reload"
x-dev-build: &dev-build
context: .
target: base
services:
web:
build: *dev-build
environment:
<<: *dev-env
volumes:
- ./scanpipe:/opt/scancodeio/scanpipe
worker:
build: *dev-build
environment:
<<: *dev-env
develop:
watch:
- action: sync+restart
path: ./scanpipe
target: /opt/scancodeio/scanpipe