Alice52 / java-ocean

java-tutorial .We intend to explain Java knowledge in this repository.
MIT License
0 stars 0 forks source link

[docker] processor #104

Closed Alice52 closed 3 years ago

Alice52 commented 4 years ago

evolution

  1. windows service -- docker -- docker-compose -- portainer stack -- azure image + jenkins

build and deploy

  1. jenkins + docker + aliyun docker center + dockerfile + compose stack

issue

  1. docker compose stack:

    • issue: how to copy default config file from container to host machine.
    • solution: It may Direction Control in docker file, so can first out, then Two Way and edit.
  2. how to mount one specify file in directory, and donot change others?


env

  1. prod env should be build config files to image
  2. and just mount log files to host machine
  3. but when dev env, should be mount these config files if necessary

reference

  1. https://docs.docker.com/compose/compose-file/#/volumes-volume-driver