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.

32 lines
573 B

  1. version: "3"
  2. services:
  3. db:
  4. image: postgres:11-alpine
  5. environment:
  6. POSTGRES_DB: wiki
  7. POSTGRES_PASSWORD: wikijsrocks
  8. POSTGRES_USER: wikijs
  9. logging:
  10. driver: "none"
  11. restart: unless-stopped
  12. volumes:
  13. - db-data:/var/lib/postgresql/data
  14. wiki:
  15. image: requarks/wiki:2
  16. depends_on:
  17. - db
  18. environment:
  19. DB_TYPE: postgres
  20. DB_HOST: db
  21. DB_PORT: 5432
  22. DB_USER: wikijs
  23. DB_PASS: wikijsrocks
  24. DB_NAME: wiki
  25. restart: unless-stopped
  26. ports:
  27. - "8080:3000"
  28. volumes:
  29. db-data: