LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 02-10-2020, 01:42 AM   #1
blason
Member
 
Registered: Feb 2016
Posts: 122

Rep: Reputation: Disabled
I need help on setting up docker-compose


Hi Folks,

I am setting HoneySAP docker image and have built the image using Dockerfile however I am not sure how do I setup docker-compose file from below Dockerfile.

Can someone please guide me?

TIA
Blason R

Code:
# HoneySAP Dockerfile for running HoneySAP

FROM ubuntu:18.04

MAINTAINER mgallo@secureauth.com

# Install system packages
RUN apt-get update && apt-get install -y \
        git \
        python-pip \
        python-dev \
        build-essential && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

COPY . /opt/honeysap
WORKDIR /opt/honeysap

# Clone git repo and install HoneySAP
RUN cd /opt/honeysap && \
    python setup.py install && \
    rm -rf /tmp/* /var/tmp/*

# Install extra python packages
RUN pip install -r requirements-optional.txt

EXPOSE 3299 8001

CMD ["/usr/local/bin/honeysap", "--config-file", "honeysap.yml"]
here is something I prepared

Code:
# honeysap service
  honeyspa:
    container_name: honeysap
    restart: always
    tmpfs:
     - /tmp/honeysap:uid=2000,gid=2000
     - /tmp/honeysap/data:uid=2000,gid=2000
    networks:
     - honeysap_net
    ports:
     - "3299:3299"
     - "8001:8001"
    image: "xxsx/xxxhoneysap:1903"
    read_only: true
    volumes:
     - /var/log/data/honeysap/logs:/home/honeysap/logs
 
Old 02-13-2020, 07:45 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,710

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by blason View Post
Hi Folks,
I am setting HoneySAP docker image and have built the image using Dockerfile however I am not sure how do I setup docker-compose file from below Dockerfile. Can someone please guide me?
Putting your exact question into Google pulls up the Docker documentation as the first hit, which has a how-to that tells you how to set up the file, deploy it, etc., all with pictures and a step-by-step guide.
https://docs.docker.com/compose/gettingstarted/

Read the "Question Guidelines" link in my posting signature.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: LazyDocker: New Docker And Docker Compose Terminal UI LXer Syndicated Linux News 0 07-02-2019 12:51 AM
LXer: Setup Ruby on Rails Development environment with Docker and Docker Compose on Ubuntu LXer Syndicated Linux News 0 05-22-2019 10:42 PM
LXer: Dockerizing LEMP Stack with Docker-Compose on Ubuntu LXer Syndicated Linux News 0 03-02-2017 06:30 AM
LXer: Docker Engine 1.6 Debuts Alongside Docker Registry 2.0 and Compose 1.2.0 LXer Syndicated Linux News 0 04-17-2015 09:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration