Docker compose

It’s been awhile since last time I was working on the docker. I forget about how dockerfile was build and how to use docker compose. This project help me pick up what I forget.

  1. Create docker-compose.yml
version: "3"

services:
  web:
    build: .
    command: bundle exec jekyll serve --trace --livereload --host "0.0.0.0"
    ports:
      - "4000:4000"
  1. Run followings in bash
docker-compose up

Back to top

Copyright © 2019 - 2024 Johnny Li. All contents licensed under CC BY-NC-SA 4.0 本站所有内容基于 CC BY-NC-SA 4.0 协议发布,转载需要署名.
Please read the LICENSE file for specific language governing permissions and limitations under the License.

Page last modified: Apr 11 2024 at 10:15 PM.

Edit this page on GitHub