Skip to content
Snippets Groups Projects
docker-compose.yaml 562 B
version: '3.8'
x-service: &service
  init: true
  tty: true
  stdin_open: true
  user: "${UID}:${GID}"
  environment:
    - DISPLAY=${DISPLAY}
    - MPLCONFIGDIR=${MPLCONFIGDIR}
  volumes:
    - .:/app
    - /tmp/.X11-unix:/tmp/.X11-unix:rw
    - /etc/group:/etc/group:ro
    - /etc/passwd:/etc/passwd:ro
    - /etc/shadow:/etc/shadow:ro
    - /etc/sudoers.d:/etc/sudoers.d:ro

services:
  unsupervised-segmentation: 
    <<: *service
    build: .
    image: "${DOCKER_ID}/unsupervised-segmentation:${DOCKER_TAG}"
    container_name: "unsupervised-segmentation"