Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use docker compose instead of docker-compose #771

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ graph of required docker images that represent the production environment.
with Redis and a MariaDB server for the `enwp10` database. Use it like so

```bash
docker-compose -f docker-compose-dev.yml up -d
docker compose -f docker-compose-dev.yml up -d
```

`docker-compose-test.yml` is a another docker file which sets up the test db
for python "nosetests" (unit tests). Run it similarly:

```bash
docker-compose -f docker-compose-test.yml up -d
docker compose -f docker-compose-test.yml up -d
```

The `*.dockerfile` symlinks allow for each docker image in this repository
Expand Down Expand Up @@ -202,7 +202,7 @@ backend selections.
After that is done, use the following command to run the dev environment:

```bash
docker-compose -f docker-compose-dev.yml up -d
docker compose -f docker-compose-dev.yml up -d
```

## Migrating and updating the dev database.
Expand Down Expand Up @@ -304,7 +304,7 @@ The `serve` command should print out the port to view the docs at, likely localh
- `sudo docker pull ghcr.io/openzim/wp1-web:release`
- `sudo docker pull ghcr.io/openzim/wp1-frontend:release`
- Run docker-compose to bring the production images online.
- `sudo docker-compose up -d`
- `sudo docker compose up -d`
- Run the production database migrations in the worker container:
- `sudo docker exec -ti -e PYTHONPATH=app wp1bot-workers yoyo -c /usr/src/app/db/production/yoyo.ini apply`

Expand Down