Skip to content

Commit bb9100a

Browse files
committed
No need to expose ports since yaichi does all
1 parent 13cf548 commit bb9100a

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ $ docker-compose run backend bundle exec rake db:create
2525
$ docker-compose up -d
2626

2727
# Open frontend
28-
$ open http://localhost:80 # You'll see yaichi page
29-
# or
30-
$ open http://frontend.localhost
28+
$ open http://localhost:80 # You'll see yaichi page, then click any app
3129

3230
# Check backend API
3331
$ curl -H 'Host: backend.localhost' http://localhost/greetings/hello

docker-compose.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ services:
1111
command: bundle exec rails s -p 3000 -b '0.0.0.0'
1212
volumes:
1313
- ./backend:/myapp/backend
14-
ports:
15-
- "3001:3000"
1614
depends_on:
1715
- db
1816
frontend:
@@ -22,8 +20,6 @@ services:
2220
working_dir: /myapp/frontend
2321
volumes:
2422
- ./frontend:/myapp/frontend
25-
ports:
26-
- "3000:3000"
2723
command: "yarn start"
2824
depends_on:
2925
- backend

0 commit comments

Comments
 (0)