docker-compose.yml 698 B

123456789101112131415161718192021222324252627282930313233343536
  1. version: '3'
  2. services:
  3. nextclouddev:
  4. build: .
  5. volumes:
  6. - .:/workspace:cached
  7. - /var/run/docker.sock:/var/run/docker-host.sock
  8. - ..:/var/www/html
  9. command: /var/www/html/.devcontainer/entrypoint.sh
  10. ports:
  11. - 80:80
  12. - 8080:8080
  13. - 8025:8025
  14. db:
  15. image: postgres
  16. restart: always
  17. environment:
  18. POSTGRES_PASSWORD: postgres
  19. PGDATA: /data/postgres
  20. volumes:
  21. - db:/data/postgres
  22. network_mode: service:nextclouddev
  23. adminer:
  24. image: adminer
  25. restart: always
  26. network_mode: service:nextclouddev
  27. mailhog:
  28. image: mailhog/mailhog
  29. restart: always
  30. network_mode: service:nextclouddev
  31. volumes:
  32. db: