docker-compose.dev-secure.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. version: "3"
  2. services:
  3. webpack:
  4. build:
  5. context: ./dashboard
  6. dockerfile: ./docker/dev.Dockerfile
  7. env_file:
  8. - ./dashboard/.env
  9. restart: on-failure
  10. volumes:
  11. - ./dashboard/src:/webpack/src:rw,cached
  12. - ./dashboard/package.json:/webpack/package.json
  13. porter:
  14. build:
  15. context: .
  16. dockerfile: ./docker/dev.Dockerfile
  17. depends_on:
  18. - postgres
  19. env_file:
  20. - ./docker/.env
  21. command: /bin/sh -c '/porter/bin/migrate; air -c .air.toml;'
  22. restart: on-failure
  23. volumes:
  24. - ./cmd:/porter/cmd
  25. - ./internal:/porter/internal
  26. - ./server:/porter/server
  27. - ./api:/porter/api
  28. - ./docker/kubeconfig.yaml:/porter/kubeconfig.yaml
  29. - ./docker/github_app_private_key.pem:/porter/docker/github_app_private_key.pem
  30. postgres:
  31. image: postgres:latest
  32. container_name: postgres
  33. environment:
  34. - POSTGRES_USER=porter
  35. - POSTGRES_PASSWORD=porter
  36. - POSTGRES_DB=porter
  37. ports:
  38. - 5400:5432
  39. volumes:
  40. - database:/var/lib/postgresql/data
  41. redis:
  42. image: redis:latest
  43. container_name: redis
  44. ports:
  45. - 6379:6379
  46. volumes:
  47. - database:/var/lib/postgresql/data
  48. chartmuseum:
  49. image: docker.io/bitnami/chartmuseum:0-debian-10
  50. container_name: chartmuseum
  51. ports:
  52. - 5000:8080
  53. volumes:
  54. - chartmuseum:/bitnami/data
  55. nginx:
  56. image: nginx:mainline-alpine
  57. container_name: nginx
  58. restart: unless-stopped
  59. ports:
  60. - 443:443
  61. volumes:
  62. - ./docker/localhost.crt:/etc/ssl/localhost.crt
  63. - ./docker/localhost.key:/etc/ssl/localhost.key
  64. - ./docker/nginx_local_secure.conf:/etc/nginx/nginx.conf:ro
  65. depends_on:
  66. - porter
  67. - webpack
  68. volumes:
  69. database:
  70. metabase:
  71. chartmuseum: