-
docker inspect查看全部
-
粗糙的虛擬機查看全部
-
nginx: http層,接入層
ghost app: 業務邏輯層
mysql: 數據層
查看全部 -
ADD 也可以將遠程的文件添加到容器里
查看全部 -
-p 8080:80? 端口映射,nginx 80端口映射到host的8080端口
-d 允許程序直接返回,把container作為守護進程
查看全部 -
docker 架構
查看全部 -
docker 語法 2
查看全部 -
dockerfile 語法
查看全部 -
docker 基本命令2
查看全部 -
docker 基本命令
查看全部 -
docker demon 操作各種docker命令
包括下載鏡像,運行容器
我們用客戶端和docker daemon交互
查看全部 -
Ghost_Demo_docker-compose\docker-compose.yml:
version:?"3" networks: ???ghost:??#?Networks?to?join services: ??ghost-app: ????image:?ghost ????restart:?always ????networks: ??????-?ghost ????depends_on: ??????-?db ????ports: ??????-?"2368:2368" ????environment: ??????#?see?https://docs.ghost.org/docs/config#section-running-ghost-with-config-env-variables ??????database__client:?mysql ??????database__connection__host:?db ??????database__connection__user:?ghost ??????database__connection__password:?ghost ??????database__connection__database:?ghost nginx: ??build:?nginx ??restart:?always?#?the?container?always?restarts ??networks: ????-?ghost ??depends_on: ????-?ghost-app ??ports: ????-?"80:80" ???? db: ??image:?"mariadb"? ??restart:?always ??networks: ????-?ghost ??environment: ????MYSQL_ROOT_PASSWORD:?mysqlroot ????MYSQL_DATABASE:?ghost ????MYSQL_USER:?ghost ????MYSQL_PASSWORD:?ghost ??volumes: ????-?$PWD/data:/var/lib/mysql ??ports: ????-?"3306:3306"
查看全部 -
Ghost_Demo_docker-compose\nginx\nginx.conf:
worker_processes?4; events?{worker_connections?1024;} http?{ ????server?{ ????????listen?80; ????????location?/?{ ????????????proxy_pass?http://ghost-app:2368; ????????} ????} }
查看全部 -
Ghost_Demo_docker-compose\nginx\Dockerfile:
FROM?nginx COPY?nginx.conf?/etc/nginx/nginx.conf EXPOSE?80
查看全部 -
docker-compose-yaml:
ghost-app: ??build:?ghost ??depends_on: ????-?db ????ports ??????-?"2368:2368" nginx: ??build:?nginx ??ports: ????-?"80:80" ????depends_on: ??????-?ghost-app db: ??image:?"mysql:5.7.15"
查看全部
舉報
0/150
提交
取消