You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
847 B

  1. # -- DEV DOCKER-COMPOSE --
  2. # -- DO NOT USE IN PRODUCTION! --
  3. version: "3"
  4. services:
  5. db:
  6. image: mysql:5.7
  7. environment:
  8. MYSQL_DATABASE: wiki
  9. MYSQL_PASSWORD: wikijsrocks
  10. MYSQL_USER: wikijs
  11. MYSQL_ROOT_PASSWORD: wikijsrocks
  12. logging:
  13. driver: "none"
  14. volumes:
  15. - db-data:/var/lib/mysql
  16. networks:
  17. - wikinet
  18. ports:
  19. - "13306:3306"
  20. adminer:
  21. image: adminer:latest
  22. logging:
  23. driver: "none"
  24. networks:
  25. - wikinet
  26. ports:
  27. - "3001:8080"
  28. wiki:
  29. build:
  30. context: .
  31. dockerfile: dev/docker-mysql/Dockerfile
  32. depends_on:
  33. - db
  34. networks:
  35. - wikinet
  36. ports:
  37. - "3000:3000"
  38. volumes:
  39. - .:/wiki
  40. - /wiki/node_modules
  41. command: ["sh", "./dev/docker-mysql/init.sh"]
  42. networks:
  43. wikinet:
  44. volumes:
  45. db-data: