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

開発用サーバの立て方 #65

Open
chez-shanpu opened this issue Nov 13, 2021 · 1 comment
Open

開発用サーバの立て方 #65

chez-shanpu opened this issue Nov 13, 2021 · 1 comment

Comments

@chez-shanpu
Copy link
Collaborator

chez-shanpu commented Nov 13, 2021

serverディレクトリに入ってmake runでいいようにした(このときDBのデータは吹き飛ぶので注意)


docker-composeを使う

$ cd server
$ docker-compose -f ./docker-compose.dev.yaml up --build

これでmysqlと管理サーバの二つのコンテナが立ち上がる(詳しくはdocker-compose.dev.yamlを見てね)
mysqlの中身を消したいときは、mysqlのコンテナを消して、mysqlと名前がついたボリュームを消す
こんな感じ

$ docker container rm $(docker container ls -a |grep mysql | awk '{ print $1 }')
$ docker volume rm $(docker volume ls |grep mysql | awk '{ print $2 }')
@ayanogami
Copy link
Collaborator

これってデフォルトのIPアドレスとポートは0.0.0.0:8080であってますか?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants