-
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
提交
取消