Article 4Z4ZE I need help on setting up docker-compose

I need help on setting up docker-compose

by
blason
from LinuxQuestions.org on (#4Z4ZE)
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/logslatest?d=yIl2AUoC8zA latest?i=TkxjR9B84qg:wT4y-58SAV4:F7zBnMy latest?i=TkxjR9B84qg:wT4y-58SAV4:V_sGLiP latest?d=qj6IDK7rITs latest?i=TkxjR9B84qg:wT4y-58SAV4:gIN9vFwTkxjR9B84qg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments