Skip to content

Instantly share code, notes, and snippets.

@neomatrixcode
Last active July 9, 2020 02:30
Show Gist options
  • Save neomatrixcode/4cf45fa5226ecba236ed6ac3c331e9e9 to your computer and use it in GitHub Desktop.
Save neomatrixcode/4cf45fa5226ecba236ed6ac3c331e9e9 to your computer and use it in GitHub Desktop.
version: '3'
services:
ms:
restart: always
image: metasploitframework/metasploit-framework:latest
environment:
DATABASE_URL: postgres://postgres@db:5432/msf?pool=200&timeout=5
links:
- db
ports:
- 4444:8080
volumes:
- $HOME/.msf4:/home/msf/.msf4
#entrypoint: [bash]
db:
restart: always
image: postgres:10-alpine
volumes:
- pg_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: "db"
POSTGRES_HOST_AUTH_METHOD: "trust"
POSTGRES_DB: "msf"
volumes:
pg_data:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment