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.

60 lines
972 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: postgres:9-alpine
  15. environment:
  16. POSTGRES_DB: wiki
  17. POSTGRES_PASSWORD: wikijsrocks
  18. POSTGRES_USER: wikijs
  19. logging:
  20. driver: "none"
  21. volumes:
  22. - db-data:/var/lib/postgresql/data
  23. networks:
  24. - wikinet
  25. ports:
  26. - "15432:5432"
  27. adminer:
  28. image: adminer:latest
  29. logging:
  30. driver: "none"
  31. networks:
  32. - wikinet
  33. ports:
  34. - "3001:8080"
  35. wiki:
  36. build:
  37. context: .
  38. dockerfile: dev/docker/Dockerfile
  39. depends_on:
  40. - db
  41. - redis
  42. networks:
  43. - wikinet
  44. ports:
  45. - "3000:3000"
  46. volumes:
  47. - .:/var/wiki
  48. - /var/wiki/node_modules
  49. command: ["sh", "./dev/docker/init.sh"]
  50. networks:
  51. wikinet:
  52. volumes:
  53. db-data: