Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide docker-compose.yml as an alternative to setup script #1

Open
erdincka opened this issue Jul 27, 2023 · 0 comments
Open

Provide docker-compose.yml as an alternative to setup script #1

erdincka opened this issue Jul 27, 2023 · 0 comments

Comments

@erdincka
Copy link

erdincka commented Jul 27, 2023

Instead of shell script can you provide a docker-compose.yml snippet so it can be integrated with existing workflows?
Sample docker-compose.yml can be like:

version: "3"

networks:
  lab:
    internal: false

services:
  maprdev:
    platform: linux/amd64
    image: maprtech/edf-seed-container:latest
    container_name: maprdev
    hostname: maprdev.mapr.io
    privileged: true
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /sys/fs/cgroup:/sys/fs/cgroup:rw
    ports:
      - "9998:9998"
      - "8042:8042"
      - "8888:8888"
      - "8087:8087"
      - "8088:8088"
      - "9997:9997"
      - "10001:10001"
      - "8190:8190"
      - "8243:8243"
      - "2222:22"
      - "4040:4040"
      - "7221:7221"
      - "7222:7222"
      - "7223:7223"
      - "7443:7443"
      - "8090:8090"
      - "5660:5660"
      - "8443:8443"
      - "19888:19888"
      - "50060:50060"
      - "18080:18080"
      - "8032:8032"
      - "14000:14000"
      - "19890:19890"
      - "10000:10000"
      - "11443:11443"
      - "12000:12000"
      - "8081:8081"
      - "8002:8002"
      - "8080:8080"
      - "31010:31010"
      - "8044:8044"
      - "8047:8047"
      - "11000:11000"
      - "2049:2049"
      - "8188:8188"
      - "7077:7077"
      - "5181:5181"
      - "5661:5661"
      - "5692:5692"
      - "5724:5724"
      - "5756:5756"
      - "10020:10020"
      - "50000-50050:50000-50050"
      - "9001:9001"
      - "5693:5693"
      - "9002:9002"
      - "31011:31011"
      - "9092:9092"
    environment:
      - MAPR_EXTERNAL=192.168.0.100
      - clusterName=maprdev.mapr.io
      - isSecure=true
      - TZ=Europe/London
    cap_add:
      - "SYS_ADMIN"
    tmpfs:
      - /run
      - /run/lock
    restart: always
    networks:
      - lab

Obviously, MAPR_EXTERNAL and container_name, hostname, clusterName and TZ (Timezone) are customisable.
platform: linux/amd64 ensures this to work on M1/M2 MacOS.
Not sure if privileged: true is required when cap_add: ["SYS_ADMIN"] is there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant