Advertisement
Guest User

Untitled

a guest
Sep 29th, 2022
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. services:
  2. backend-node:
  3. build:
  4. context: ./backend-node
  5. container_name: myapp-backend-node
  6. depends_on:
  7. database-postgres:
  8. condition: service_started
  9. ports:
  10. - mode: ingress
  11. target: 3000
  12. published: "3000"
  13. protocol: tcp
  14. restart: always
  15. database-postgres:
  16. container_name: myapp-db-postgres
  17. env_file:
  18. - environment.env
  19. image: postgres:14.4-alpine
  20. networks:
  21. backend-database: null
  22. postgres-adminer: null
  23. ports:
  24. - mode: ingress
  25. target: 5432
  26. published: "5432"
  27. protocol: tcp
  28. restart: always
  29. volumes:
  30. - type: bind
  31. source: ./volumes/postgres-data
  32. target: /var/lib/postgresql/data
  33. - type: bind
  34. source: ./volumes/postgres-init
  35. target: /docker-entrypoint-initdb.d
  36. db-admin-adminer:
  37. container_name: myapp-dbadmin-adminer
  38. depends_on:
  39. database-postgres:
  40. condition: service_started
  41. env_file:
  42. - environment.env
  43. image: adminer:latest
  44. networks:
  45. postgres-adminer: null
  46. ports:
  47. - mode: ingress
  48. target: 8080
  49. published: "8090"
  50. protocol: tcp
  51. frontend-react:
  52. build:
  53. context: ./frontend-react
  54. container_name: myapp-frontend-react
  55. depends_on:
  56. backend-node:
  57. condition: service_started
  58. database-postgres:
  59. condition: service_started
  60. networks:
  61. frontend-backend: null
  62. ports:
  63. - mode: ingress
  64. target: 80
  65. published: "8000"
  66. protocol: tcp
  67. restart: always
  68. networks:
  69. backend-database: {}
  70. frontend-backend: {}
  71. postgres-adminer: {}
  72.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement