docker-compose.dev.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. version: '3'
  2. services:
  3. webpack:
  4. build:
  5. context: ./dashboard
  6. dockerfile: ./docker/dev.Dockerfile
  7. restart: on-failure
  8. volumes:
  9. - ./dashboard:/webpack:rw,cached
  10. - /webpack/node_modules
  11. porter:
  12. build:
  13. context: .
  14. dockerfile: ./docker/dev.Dockerfile
  15. depends_on:
  16. - postgres
  17. env_file:
  18. - ./docker/.env
  19. command: /bin/sh -c '/porter/bin/migrate; air -c .air.toml;'
  20. restart: on-failure
  21. volumes:
  22. - ./cmd:/porter/cmd
  23. - ./internal:/porter/internal
  24. - ./server:/porter/server
  25. postgres:
  26. image: postgres:latest
  27. container_name: postgres
  28. environment:
  29. - POSTGRES_USER=porter
  30. - POSTGRES_PASSWORD=porter
  31. - POSTGRES_DB=porter
  32. ports:
  33. - 5400:5432
  34. volumes:
  35. - database:/var/lib/postgresql/data
  36. nginx:
  37. image: nginx:mainline-alpine
  38. container_name: nginx
  39. restart: unless-stopped
  40. ports:
  41. - '8080:8080'
  42. volumes:
  43. - ./docker/nginx_local.conf:/etc/nginx/nginx.conf:ro
  44. depends_on:
  45. - porter
  46. - webpack
  47. volumes:
  48. database:
  49. metabase: