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

remove docker compose deprecated stuff #43

Merged
merged 3 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
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 @@ -183,10 +183,10 @@ Steps to run this demo are as follows:

```bash
# run CrowdSec container
$ docker-compose up -d crowdsec
$ docker compose up -d crowdsec

# add the Caddy bouncer, generating an API key
$ docker-compose exec crowdsec cscli bouncers add caddy-bouncer
$ docker compose exec crowdsec cscli bouncers add caddy-bouncer

# copy and paste the API key in the ./docker/config.json file
# below is the git diff after changing the appropriate line:
Expand All @@ -196,10 +196,10 @@ $ git diff
+ "api_key": "9e4ac94cf9aebaa3625a1d51951230a9",

# run Caddy; at first run a custom build will be created using xcaddy
$ docker-compose up -d caddy
$ docker compose up -d caddy

# tail the logs
$ docker-compose logs -tf
$ docker compose logs -tf
```

You can then access https://localhost:9443 and https://localhost:8443.
Expand Down
14 changes: 6 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
version: "3.4"

volumes:
caddy-data: {}
caddy-config: {}
logs: {}

services:
crowdsec:
image: crowdsecurity/crowdsec
Expand All @@ -24,4 +17,9 @@ services:
- caddy-data:/data
- caddy-config:/config
- logs:/var/log/caddy
- ./docker/config.json:/etc/caddy/config.json
- ./docker/config.json:/etc/caddy/config.json

volumes:
caddy-data:
caddy-config:
logs:
Loading