Skip to content
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

Merged
merged 3 commits into from
Jun 10, 2024
Merged

Conversation

AleksanderNekr
Copy link
Contributor

@disk0Dancer, попробуй запустить докер, чтоб фронт тоже поднялся

@AleksanderNekr AleksanderNekr linked an issue Jun 8, 2024 that may be closed by this pull request
@AleksanderNekr AleksanderNekr self-assigned this Jun 8, 2024
@disk0Dancer
Copy link
Contributor

У меня все поднялось, фронт заработал.

frontend/Dockerfile Outdated Show resolved Hide resolved
environment:
NODE_ENV: production
ports:
- 3001:3001

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

нужно будеть добавить сеть, там в моем PR уже есть сеть для бека, нужно прокрутить сеть для фронт-бек

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут не понял, что имеешь в виду)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Разобрался, ты, оказывается, в своей ветке компоуз для бд обновил, я прост не видел) Сделай пр, если готово

Насчет сети, можно добавить кнш, но у меня из без нее всегда работало, никогда не юзал и смысла особо не вижу)
Если нужно, могу добавить

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ну, всмысле, networking контейнеров (чтобы с фронта можно было подключиться к беку так: backend:3000/api), я сделаю, когда сольем все в кучу)

Copy link
Contributor Author

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 вызовы друг другу), но никакой сети настраивать не нужно было

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Но давай сделаем, без проблем))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@disk0Dancer, кстати, почитал доку, бридж по дефолту устанавливается, его можно явно не задавать, как я понимаю
image

@disk0Dancer disk0Dancer merged commit fdec2a8 into develop Jun 10, 2024
2 checks passed
@AleksanderNekr AleksanderNekr deleted the feat/docker-front branch June 10, 2024 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Обновить docker-compose (фронт)
2 participants