$ cp .env.sample .env
You can access to the web application on http://localhost:80
$ make up
You can login with the user(id: ohkilab
, password: ohkilab
)
$ cd backend
$ make batch/seed
cannot connect to the frontend via http://localhost:80 on docker desktop for mac
In docker desktop for mac, the host
network mode is not available, so you cannot connect to the frontend in default.
To launch services, comment out all lines which contain network_mode=host
in compose.yaml
. After this operation, services are launched with the bridge
network mode.
backend:
build:
context: backend
dockerfile: Dockerfile
env_file:
- .env
restart: always
- network_mode: host
depends_on:
- db
- benchmark-service
extra_hosts:
- "host.docker.internal:host-gateway"
Since frontend project is dependent on files outside of its directory, the image has to be built from the project root. The following command can be used to build the frontend image.
docker build -t exp-a-frontend -f ./frontend/Dockerfile .