docker-compose.studio.yml 975 B

12345678910111213141516171819202122232425262728293031323334
  1. # Local-only Prisma Studio. Never exposed through Traefik: it binds to
  2. # 127.0.0.1 on the host, so reaching it requires an SSH tunnel:
  3. #
  4. # ssh -i <key> -L 5555:127.0.0.1:5555 ubuntu@<host>
  5. # docker compose -f docker-compose.yml -f docker-compose.studio.yml up -d studio
  6. # open http://127.0.0.1:5555
  7. #
  8. # Tear it down again when you are done: it has full read/write access to the DB.
  9. services:
  10. studio:
  11. image: eks-relay:local
  12. container_name: eks-relay-studio
  13. restart: "no"
  14. env_file: .env
  15. environment:
  16. - DATABASE_URL=file:/app/data/eks_relay.db
  17. volumes:
  18. - .:/app
  19. - relay_node_modules:/app/node_modules
  20. - ./data:/app/data
  21. entrypoint: ["npx", "prisma", "studio", "--port", "5555", "--hostname", "0.0.0.0", "--browser", "none"]
  22. ports:
  23. - "127.0.0.1:5555:5555"
  24. networks:
  25. - web
  26. volumes:
  27. relay_node_modules:
  28. external: true
  29. name: eks_relay_relay_node_modules
  30. networks:
  31. web:
  32. external: true