From 36ec04e9db59886ee762d34d0226d596cb63ea2e Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 15 Feb 2022 14:55:41 +0900 Subject: [PATCH] Move docker-compose.dev.yml to docker directory --- README.md | 4 ++-- .../docker-compose.dev.yml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) rename docker-compose.dev.yml => docker/docker-compose.dev.yml (96%) diff --git a/README.md b/README.md index 1ba8465e..58cdbc0b 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ POSTGRES_DB=doccano After running the following command, access . ```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 . If you want to use the admin site, please access . ```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: diff --git a/docker-compose.dev.yml b/docker/docker-compose.dev.yml similarity index 96% rename from docker-compose.dev.yml rename to docker/docker-compose.dev.yml index 5fd71387..1ca96095 100644 --- a/docker-compose.dev.yml +++ b/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