version: "3"

services:
  restheart:
    image: softinstigate/restheart-snapshot:latest
    environment:
      RHO: mongo-uri->"mongodb://mongodb"
    depends_on:
      - mongodb
      - mongodb-init
    ports:
      - "8080:8080"

  mongodb:
    image: mongo:5.0
    command: ["--bind_ip_all", "--replSet", "rs0"]

  ### Initialize MongoDB as a single node Replica Set
  mongodb-init:
    image: mongo:5.0
    depends_on:
      - mongodb
    entrypoint: >-
      bash -c "for i in {1..10}; do mongo --host mongodb --eval 
      'if (!rs.status().ok) rs.initiate();' && break || sleep 3; done"

version: "3"

services:
  restheart:
    image: softinstigate/restheart-snapshot:7d769ff
    environment:
      RHO: /mongo-uri->"mongodb://mongodb"
    depends_on:
      - mongodb
      - mongodb-init
    ports:
      - "8080:8080"

  mongodb:
    image: mongo:5.0
    command: ["--bind_ip_all", "--replSet", "rs0"]

  ### Initialize MongoDB as a single node Replica Set
  mongodb-init:
    image: mongo:5.0
    depends_on:
      - mongodb
    entrypoint: >-
      bash -c "for i in {1..10}; do mongo --host mongodb --eval 
      'if (!rs.status().ok) rs.initiate();' && break || sleep 3; done"

Update docker compose file for v7
:hammer: Update docker compose file for v7
