add networking to compose file
This commit is contained in:
parent
6916c94883
commit
0fa0e71ae7
|
@ -6,6 +6,9 @@ services:
|
|||
restart: always
|
||||
volumes:
|
||||
- ./app/:/usr/local/apache2/htdocs/
|
||||
networks:
|
||||
crowdsec_test:
|
||||
ipv4_address: 172.18.0.2
|
||||
|
||||
reverse-proxy:
|
||||
image: nginx:alpine
|
||||
|
@ -17,6 +20,9 @@ services:
|
|||
volumes:
|
||||
- ./reverse-proxy/nginx.conf:/etc/nginx/nginx.conf
|
||||
- logs:/var/log/nginx
|
||||
networks:
|
||||
crowdsec_test:
|
||||
ipv4_address: 172.18.0.3
|
||||
|
||||
crowdsec:
|
||||
image: crowdsecurity/crowdsec:v1.0.7
|
||||
|
@ -34,6 +40,9 @@ services:
|
|||
- logs:/var/log/nginx
|
||||
- crowdsec-db:/var/lib/crowdsec/data/
|
||||
- crowdsec-config:/etc/crowdsec/
|
||||
networks:
|
||||
crowdsec_test:
|
||||
ipv4_address: 172.18.0.4
|
||||
|
||||
dashboard:
|
||||
build: ./crowdsec/dashboard
|
||||
|
@ -46,10 +55,18 @@ services:
|
|||
- 'crowdsec'
|
||||
volumes:
|
||||
- crowdsec-db:/metabase-data/
|
||||
links:
|
||||
- crowdsec
|
||||
networks:
|
||||
crowdsec_test:
|
||||
ipv4_address: 172.18.0.5
|
||||
|
||||
volumes:
|
||||
logs:
|
||||
crowdsec-db:
|
||||
crowdsec-config:
|
||||
crowdsec-config:
|
||||
|
||||
networks:
|
||||
crowdsec_test:
|
||||
ipam:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: 172.18.0.0/24
|
||||
|
|
Loading…
Reference in a new issue