forked from ietf-tools/bibxml-service
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.dev.yml
30 lines (29 loc) · 1.08 KB
/
docker-compose.dev.yml
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
# Meant to be used in conjunction (after) the main docker-compose.yml
# in development environment:
#
# docker compose -f docker-compose.yml -f docker-compose.dev.yml up
services:
web:
command:
# This command overrides the one from the “main” Compose file
# in order to run the extra `npm install` required
# after the mounted `code` directory overwrites `node_modules`
# created during Dockerfile build process.
- /bin/sh
- -c
- |
export SNAPSHOT=$$(git describe --abbrev=0) &&
npm install &&
./wait-for-migrations.sh &&
python manage.py runserver 0.0.0.0:8000
volumes:
# If working on relaton-py, it could be mounted as follows
# (given Docker can mount parent directory)
# - ../relaton-py/relaton:/usr/local/lib/python3.10/site-packages/relaton:ro
- .:/code
celery:
volumes:
# If working on relaton-py, it could be mounted as follows
# (given Docker can mount parent directory)
# - ../relaton-py/relaton:/usr/local/lib/python3.10/site-packages/relaton:ro
- .:/code