Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. version: '3'
  2. services:
  3. frontend:
  4. build: ./frontend/
  5. command: npm run start
  6. volumes:
  7. - ./frontend/:/usr/app/
  8. - ./frontend/node_modules
  9. ports:
  10. - '3000:3000'
  11.  
  12. db:
  13. image: postgres
  14. ports:
  15. - '5432:5432'
  16. environment:
  17. - POSTGRES_USER=postgres
  18. - POSTGRES_PASSWORD=postgres
  19. - POSTGRES_DB=exampledb
  20.  
  21. db_admin:
  22. image: dpage/pgadmin4
  23. ports:
  24. - '5555:80'
  25. environment:
  26. - PGADMIN_DEFAULT_EMAIL=asdf
  27. - PGADMIN_DEFAULT_PASSWORD=asdf
  28. depends_on:
  29. - db
  30.  
  31. api:
  32. build: ./backend/api/
  33. command: npm run dev
  34. volumes:
  35. - ./backend/api/:/usr/app/
  36. - /backend/api/node_modules
  37. ports:
  38. - '3333:3333'
  39. depends_on:
  40. - db
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement