Skip to content

Commit

Permalink
Update code to use the "docker compose" syntax vice "docker-compose"
Browse files Browse the repository at this point in the history
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
  • Loading branch information
jsf9k committed Jun 13, 2022
1 parent 6fc5f4c commit 8083e72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ docker run cisagov/gatherer:1.5.5
1. Start the container and detach:
```console
docker-compose up --detach
docker compose up --detach
```

## Using secrets with your container ##
Expand Down Expand Up @@ -108,13 +108,13 @@ environment variables. See the
1. Pull the new image from Docker Hub:

```console
docker-compose pull
docker compose pull
```

1. Recreate the running container by following the [previous instructions](#running-with-docker-compose):

```console
docker-compose up --detach
docker compose up --detach
```

### Docker ###
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
version: "3.7"

# This docker-compose file is used to build the container
# This docker compose file is used to build and test the container

secrets:
database_creds:
Expand Down
2 changes: 1 addition & 1 deletion tests/container_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# import pytest

ENV_VAR = "ECHO_MESSAGE"
ENV_VAR_VAL = "Hello World from docker-compose!"
ENV_VAR_VAL = "Hello World from docker compose!"
READY_MESSAGE = "This is a debug message"
SECRET_QUOTE = (
"There are no secrets better kept than the secrets everybody guesses." # nosec
Expand Down

0 comments on commit 8083e72

Please sign in to comment.