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.

53 lines
998 B

  1. # -- DEV DOCKER-COMPOSE --
  2. # -- DO NOT USE IN PRODUCTION! --
  3. version: "3"
  4. services:
  5. redis:
  6. image: redis:4-alpine
  7. logging:
  8. driver: "none"
  9. networks:
  10. - wikinet
  11. db:
  12. image: postgres:9-alpine
  13. environment:
  14. POSTGRES_DB: wiki
  15. POSTGRES_PASSWORD: wikijsrocks
  16. POSTGRES_USER: wikijs
  17. logging:
  18. driver: "none"
  19. volumes:
  20. - db-data:/var/lib/postgresql/data
  21. networks:
  22. - wikinet
  23. wiki:
  24. image: requarks/wiki:beta
  25. depends_on:
  26. - db
  27. - redis
  28. environment:
  29. PORT: 3000 # DO NOT CHANGE! Use ports below to specify listening port.
  30. DB_TYPE: postgres
  31. DB_HOST: db
  32. DB_PORT: 5432
  33. DB_USER: wikijs
  34. DB_PASS: wikijsrocks
  35. DB_NAME: wiki
  36. REDIS_HOST: redis
  37. REDIS_PORT: 6379
  38. REDIS_DB: 0
  39. REDIS_PASS: ''
  40. networks:
  41. - wikinet
  42. ports:
  43. - "3000:3000" # <-- replace with "80:3000" to listen on port 80 instead
  44. networks:
  45. wikinet:
  46. volumes:
  47. db-data: