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
795 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. wiki:
  28. build:
  29. context: .
  30. dockerfile: dev/docker/Dockerfile
  31. depends_on:
  32. - db
  33. - redis
  34. networks:
  35. - wikinet
  36. ports:
  37. - "3000:3000"
  38. volumes:
  39. - .:/var/wiki
  40. - /var/wiki/node_modules
  41. networks:
  42. wikinet:
  43. volumes:
  44. db-data: