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.

61 lines
1001 B

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