services:

  stm32_devcontainer:
    image: git.fasttube.de/fasttube/stm32_devcontainer:latest
    pull_policy: always
    container_name: stm32_devcontainer
    stdin_open: true
    tty: true
    privileged: true
#    build:
#      context: ../
#      dockerfile: docker/Dockerfile
    volumes:
      - type: bind
        source: ../
        target: /home/stm32_devcontainer
      - type: bind
        source: /tmp/.X11-unix
        target: /tmp/.X11-unix
      - type: bind
        source: /dev
        target: /dev
    network_mode: host
    pid: "host"
    ipc: "host"
    environment:
      DISPLAY: $DISPLAY
      ROS_AUTOMATIC_DISCOVERY_RANGE: "LOCALHOST"
      ROS_DOMAIN_ID: "0"
      PROJECT_NAME_VN200: vn200