Browse Source

Move docker-compose.dev.yml to docker directory

pull/1686/head
Hironsan 2 years ago
parent
commit
36ec04e9db
2 changed files with 7 additions and 7 deletions
  1. 4
      README.md
  2. 10
      docker/docker-compose.dev.yml

4
README.md

@ -132,7 +132,7 @@ POSTGRES_DB=doccano
After running the following command, access <http://127.0.0.1/>.
```bash
docker-compose -f docker-compose.prod.yml --env-file ./docker/.env.example up
docker-compose -f docker/docker-compose.prod.yml --env-file ./docker/.env.example up
```
#### Development
@ -140,7 +140,7 @@ docker-compose -f docker-compose.prod.yml --env-file ./docker/.env.example up
After running the following command, access <http://127.0.0.1:3000/>. If you want to use the admin site, please access <http://127.0.0.1:8000/admin/>.
```bash
docker-compose -f docker-compose.dev.yml --env-file ./docker/.env.example up
docker-compose -f docker/docker-compose.dev.yml --env-file ./docker/.env.example up
```
You can run the the test codes for the backend with the following command:

docker-compose.dev.yml → docker/docker-compose.dev.yml

@ -3,11 +3,11 @@ services:
backend:
build:
context: .
context: ..
dockerfile: docker/Dockerfile.dev
image: doccano_backend:dev
volumes:
- .:/src
- ..:/src
- venv:/root/.local/share
environment:
ADMIN_USERNAME: "${ADMIN_USERNAME}"
@ -28,11 +28,11 @@ services:
celery:
build:
context: .
context: ..
dockerfile: docker/Dockerfile.dev
image: doccano_celery:dev
volumes:
- .:/src
- ..:/src
- venv:/root/.local/share
entrypoint: ["/src/tools/dev-celery.sh"]
environment:
@ -63,7 +63,7 @@ services:
environment:
API_URL: "http://backend:8000"
volumes:
- .:/src
- ..:/src
- node_modules:/src/frontend/node_modules
ports:
- 3000:3000
Loading…
Cancel
Save