my-service: image: ubuntu:latest user: ${MY_UID}:${MY_GID} volumes: - /etc/passwd:/etc/passwd:ro - /etc/group:/etc/group:ro
hope this helps/solves
hope this helps/solves