Skip to content

Commit

Permalink
Merge pull request #776 from wkyoshida/docs-docker-env-file
Browse files Browse the repository at this point in the history
docs: Update docker commands to specify --env-file
  • Loading branch information
andrewtavis authored Mar 23, 2024
2 parents 7f03ce7 + f9dd4a4 commit bdf9117
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ git remote add upstream https://github.com/activist-org/activist.git
4. Start your docker images with the following:

```bash
docker compose up
docker compose --env-file .env.dev up

# Or with new dependencies:
# docker compose up --build
# docker compose --env-file .env.dev up --build

# And to stop the containers when you're done working:
# docker compose down
# docker compose --env-file .env.dev down
```

5. You can visit <http://localhost:3000/> to see the development build once the container is up and running.
Expand Down Expand Up @@ -226,7 +226,7 @@ You can then visit http://localhost:3000/ to see the development frontend build
Our backend depends on a connection to a postgres DB, therefore we need to setup the database first. Here our best option is to still use docker to create a postgres DB with the following command:

```bash
docker compose up db
docker compose --env-file .env.dev up db
```

In order to connect to the DB, we need to change the `DATABASE_HOST` environment variable inside the `.env.dev` file first.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,13 @@ git remote add upstream https://github.com/activist-org/activist.git
4. Start your docker images with the following:

```bash
docker compose up
docker compose --env-file .env.dev up

# Or with new dependencies:
# docker compose up --build
# docker compose --env-file .env.dev up --build

# And to stop the containers when you're done working:
# docker compose down
# docker compose --env-file .env.dev down
```

5. You can then visit <http://localhost:3000> to see the development frontend build once the container is up and running.
Expand Down

0 comments on commit bdf9117

Please sign in to comment.