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.

36 lines
658 B

  1. version: "3"
  2. services:
  3. db:
  4. image: postgres:9-alpine
  5. environment:
  6. POSTGRES_DB: wiki
  7. POSTGRES_PASSWORD: wikijsrocks
  8. POSTGRES_USER: wikijs
  9. logging:
  10. driver: "none"
  11. volumes:
  12. - db-data:/var/lib/postgresql/data
  13. networks:
  14. - wikinet
  15. wiki:
  16. image: requarks/wiki:beta
  17. depends_on:
  18. - db
  19. environment:
  20. DB_TYPE: postgres
  21. DB_HOST: db
  22. DB_PORT: 5432
  23. DB_USER: wikijs
  24. DB_PASS: wikijsrocks
  25. DB_NAME: wiki
  26. networks:
  27. - wikinet
  28. ports:
  29. - "3000:3000" # <-- replace with "80:3000" to listen on port 80 instead
  30. networks:
  31. wikinet:
  32. volumes:
  33. db-data: