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.

29 lines
573 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. wiki:
  14. image: requarks/wiki:2
  15. depends_on:
  16. - db
  17. environment:
  18. DB_TYPE: postgres
  19. DB_HOST: db
  20. DB_PORT: 5432
  21. DB_USER: wikijs
  22. DB_PASS: wikijsrocks
  23. DB_NAME: wiki
  24. ports:
  25. - "3000:3000" # <-- replace with "80:3000" to listen on port 80 instead
  26. volumes:
  27. db-data: