Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Latest commit

 

History

History
56 lines (38 loc) · 789 Bytes

build-dev-env.md

File metadata and controls

56 lines (38 loc) · 789 Bytes

環境構築

direnvのinstall

brew install direnv

依存モジュールのインストール

cd src & go mod download

docker-networkの作成

docker network create draft-backend-network

volumeの永続化

docker volume create --name=draft-postgres-db
docker volume create --name=draft-cache-redis
chmod 755 ./tmp/db/replica/entrypoint.sh

imageをビルドする

docker compose up --build

macで立ち上げる

docker compose -f docker-compose-mac.yaml up

バックグラウンドで立ち上げる

docker compose up -d

確認

curl localhost:80/healthcheck

goooooooooooooooooooooooseの使い方