73 lines
1.5 KiB
YAML
73 lines
1.5 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
app:
|
|
image: httpd:alpine
|
|
restart: always
|
|
volumes:
|
|
- ./app/:/usr/local/apache2/htdocs/
|
|
networks:
|
|
crowdsec_test:
|
|
ipv4_address: 172.20.0.2
|
|
|
|
reverse-proxy:
|
|
image: nginx:alpine
|
|
restart: always
|
|
ports:
|
|
- 8000:80
|
|
depends_on:
|
|
- 'app'
|
|
volumes:
|
|
- ./reverse-proxy/nginx.conf:/etc/nginx/nginx.conf
|
|
- logs:/var/log/nginx
|
|
networks:
|
|
crowdsec_test:
|
|
ipv4_address: 172.20.0.3
|
|
|
|
crowdsec:
|
|
image: crowdsecurity/crowdsec:v1.0.7
|
|
#build: ../..
|
|
restart: always
|
|
environment:
|
|
COLLECTIONS: "crowdsecurity/nginx"
|
|
GID: "${GID-1000}"
|
|
depends_on:
|
|
- 'reverse-proxy'
|
|
volumes:
|
|
- /home/hess/cs/crowdsec/docker/docker_start.sh:/docker_start.sh
|
|
- ./crowdsec/acquis.yaml:/etc/crowdsec/acquis.yaml
|
|
- logs:/var/log/nginx
|
|
- crowdsec-db:/var/lib/crowdsec/data/
|
|
- crowdsec-config:/etc/crowdsec/
|
|
networks:
|
|
crowdsec_test:
|
|
ipv4_address: 172.20.0.4
|
|
|
|
dashboard:
|
|
build: ./crowdsec/dashboard
|
|
restart: always
|
|
ports:
|
|
- 3000:3000
|
|
environment:
|
|
MB_DB_FILE: /data/metabase.db
|
|
MGID: "${GID-1000}"
|
|
depends_on:
|
|
- 'crowdsec'
|
|
volumes:
|
|
- crowdsec-db:/metabase-data/
|
|
networks:
|
|
crowdsec_test:
|
|
ipv4_address: 172.20.0.5
|
|
|
|
volumes:
|
|
logs:
|
|
crowdsec-db:
|
|
crowdsec-config:
|
|
|
|
networks:
|
|
crowdsec_test:
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: 172.20.0.0/24
|