Skip to content

Commit

Permalink
Merge pull request #43 from ignaigna/main
Browse files Browse the repository at this point in the history
remove docker compose deprecated stuff
  • Loading branch information
hslatman authored May 13, 2024
2 parents e316937 + d2e94dc commit 6022901
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
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:

0 comments on commit 6022901

Please sign in to comment.