-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Dockerfile & update compose.yaml #29
Conversation
4de3ec3
to
15a632a
Compare
У меня все поднялось, фронт заработал. |
environment: | ||
NODE_ENV: production | ||
ports: | ||
- 3001:3001 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
нужно будеть добавить сеть, там в моем PR уже есть сеть для бека, нужно прокрутить сеть для фронт-бек
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут не понял, что имеешь в виду)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Разобрался, ты, оказывается, в своей ветке компоуз для бд обновил, я прост не видел) Сделай пр, если готово
Насчет сети, можно добавить кнш, но у меня из без нее всегда работало, никогда не юзал и смысла особо не вижу)
Если нужно, могу добавить
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ну, всмысле, networking контейнеров (чтобы с фронта можно было подключиться к беку так: backend:3000/api), я сделаю, когда сольем все в кучу)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Без этого сработает)
Вот пример
Там internal api взаимодействует c public api (gRPC вызовы друг другу), но никакой сети настраивать не нужно было
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Но давай сделаем, без проблем))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@disk0Dancer, кстати, почитал доку, бридж по дефолту устанавливается, его можно явно не задавать, как я понимаю
@disk0Dancer, попробуй запустить докер, чтоб фронт тоже поднялся