diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b65c2b6..4093dbc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,7 +43,6 @@ jobs: - name: Get Docker version run: | docker --version - docker-compose --version - name: Install pytest run: pip install pytest requests @@ -53,13 +52,13 @@ jobs: - name: Run JupyterHub working-directory: ${{ matrix.example }} - run: docker-compose up --detach + run: docker compose up --detach - name: Test working-directory: ${{ matrix.example }} run: pytest --verbose --capture=no - - name: Print docker-compose logs + - name: Print docker compose logs if: always() working-directory: ${{ matrix.example }} - run: docker-compose logs + run: docker compose logs diff --git a/README.md b/README.md index 228ae0a..c945782 100644 --- a/README.md +++ b/README.md @@ -60,11 +60,11 @@ This deployment uses [JupyterHub Native Authenticator](https://native-authentica ## Build the JupyterHub Docker image -1. Use [docker-compose](https://docs.docker.com/compose/reference/) to build +1. Use [docker compose](https://docs.docker.com/compose/reference/) to build the JupyterHub Docker image: ```bash - docker-compose build + docker compose build ``` ## Customisation: Jupyter Notebook Image @@ -102,7 +102,7 @@ Run the JupyterHub container on the host. To run the JupyterHub container in detached mode: ```bash -docker-compose up -d +docker compose up -d ``` Once the container is running, you should be able to access the JupyterHub console at `http://localhost:8000`. @@ -110,7 +110,7 @@ Once the container is running, you should be able to access the JupyterHub conso To bring down the JupyterHub container: ```bash -docker-compose down +docker compose down ``` --- diff --git a/basic-example/docker-compose.yml b/basic-example/docker-compose.yml index 1ad854e..e5de338 100644 --- a/basic-example/docker-compose.yml +++ b/basic-example/docker-compose.yml @@ -1,7 +1,7 @@ # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. -# JupyterHub docker-compose configuration file +# JupyterHub docker compose configuration file version: "3" services: