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.

49 lines
835 B

  1. # -- DEV DOCKER-COMPOSE --
  2. # -- DO NOT USE IN PRODUCTION! --
  3. version: "3"
  4. services:
  5. db:
  6. image: postgres:9-alpine
  7. environment:
  8. POSTGRES_DB: wiki
  9. POSTGRES_PASSWORD: wikijsrocks
  10. POSTGRES_USER: wikijs
  11. logging:
  12. driver: "none"
  13. volumes:
  14. - db-data:/var/lib/postgresql/data
  15. networks:
  16. - wikinet
  17. ports:
  18. - "15432:5432"
  19. adminer:
  20. image: adminer:latest
  21. logging:
  22. driver: "none"
  23. networks:
  24. - wikinet
  25. ports:
  26. - "3001:8080"
  27. wiki:
  28. build:
  29. context: .
  30. dockerfile: dev/docker-postgres/Dockerfile
  31. depends_on:
  32. - db
  33. networks:
  34. - wikinet
  35. ports:
  36. - "3000:3000"
  37. volumes:
  38. - .:/wiki
  39. - /wiki/node_modules
  40. command: ["sh", "./dev/docker-postgres/init.sh"]
  41. networks:
  42. wikinet:
  43. volumes:
  44. db-data: