Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Unable to make metasplote work with docker #54

Open
jinnabaalu opened this issue Nov 11, 2020 · 0 comments
Open

Unable to make metasplote work with docker #54

jinnabaalu opened this issue Nov 11, 2020 · 0 comments

Comments

@jinnabaalu
Copy link

Container is getting closed after some time
image

Here is my docker-compose.yml

version: '3'
services:
  metasploit:
    image: metasploitframework/metasploit-framework:latest
    container_name: metasploit
    environment:
      DATABASE_URL: postgres://postgres@db:5432/msf?pool=200&timeout=5
    links:
      - db
    ports:
      - 4444:4444
    # volumes:
    #   - ./.msf4:/home/msf/.msf4

  db:
    image: postgres:10-alpine
    container_name: postgres
    restart: always
    environment:
      # POSTGRES_DB: msdb
      # POSTGRES_USER: msuser
      # POSTGRES_PASSWORD: msuser
      PGDATA: /var/lib/postgresql/data/pgdata
      POSTGRES_HOST_AUTH_METHOD: trust
    volumes:
      - pg_data:/var/lib/postgresql/data/pgdata
    ports:
      - "5432:5432"
volumes:
  pg_data:
    driver: local
@jinnabaalu jinnabaalu changed the title IUnable to make metasplote with docker Unable to make metasplote work with docker Nov 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant