1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-02 07:40:19 +02:00
metasploit-framework/docker-compose.yml
Andrey Arapov b641e25b6d
docker: hassle-free DB bootstrap
While it is recommended to use `POSTGRES_PASSWORD`, I think it's good when we
can bring MSF up with minimum effort from scratch.

It shouldn't be an issue from the security point of view having the DB running
in a docker container with the 5432/tcp port available only to the MSF.
2021-01-08 16:20:11 +01:00

24 lines
462 B
YAML

version: '3'
services:
ms:
image: metasploitframework/metasploit-framework:latest
environment:
DATABASE_URL: postgres://postgres@db:5432/msf?pool=200&timeout=5
links:
- db
ports:
- 4444:4444
volumes:
- $HOME/.msf4:/home/msf/.msf4
db:
image: postgres:10-alpine
volumes:
- pg_data:/var/lib/postgresql/data
environment:
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
pg_data:
driver: local