亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

20210323實驗的文件附件

version: '3.1'

networks:

? ghost:

services:

? nginx:

? ? build: nginx

? ? networks:

? ? ? - ghost

? ? ports:

? ? ? - "80:80"

? ? depends_on:

? ? ? - ghost-app

? ghost-app:

? ? build: ghost

? ? networks:

? ? ? - ghost

? ? depends_on:

? ? ? - db

? ? restart: always

? ? ports:

? ? ? - 2368:2368

? ? environment:

? ? ? # see https://ghost.org/docs/config/#configuration-options

? ? ? database__client: mysql

? ? ? database__connection__host: db

? ? ? database__connection__user: root

? ? ? database__connection__password: example

? ? ? database__connection__database: ghost

? ? ? # this url value is just an example, and is likely wrong for your environment!

? ? ? # url: http://localhost:8080

? ? ? # contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)

? ? ? #NODE_ENV: development

? db:

? ? image: mysql:5.7

? ? restart: always

? ? networks:

? ? ? - ghost

? ? volumes:

? ? ? - $PWD/data:/var/lib/mysql

? ? ports:

? ? ? - "3306:3306"

? ? environment:

? ? ? MYSQL_ROOT_PASSWORD: example



FROM ghost:3-alpine

EXPOSE 2368


FROM nginx

COPY nginx.conf /etc/nginx/nginx.conf

EXPOSE 80


worker_processes 4;

events {

? ? worker_connections 1024;

}

http {

? ? server {

? ? ? ? listen 80;

? ? ? ? location / {

? ? ? ? ? ? proxy_pass http://ghost-app:2368;

? ? ? ? }

? ? }

}


正在回答

0 回答

舉報

0/150
提交
取消

20210323實驗的文件附件

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號