关于typecho:使用dockercompose启动typecho

39次阅读

共计 610 个字符,预计需要花费 2 分钟才能阅读完成。

version: "3"

networks:
  typecho:
    external: false

services:
  server:
    image: joyqi/typecho:nightly-php7.3-apache
    container_name: typecho
    environment:
     - TIMEZONE=Asia/Shanghai
     - TYPECHO_DB_ADAPTER=Pdo_Pgsql
     - TYPECHO_DB_HOST=db
     - TYPECHO_DB_PORT=5432
     - TYPECHO_DB_USER=typecho
     - TYPECHO_DB_PASSWORD=typecho
     - TYPECHO_DB_DATABASE=typecho
     - TYPECHO_SITE_URL=http://10.0.0.200
    restart: always
    networks:
      - typecho
    volumes:
      - ./typecho:/app/usr
    
    ports:
      - "80:80"
      - "222:22"
    depends_on:
      - db

  db:
    image: postgres:14
    restart: always
    environment:
      - POSTGRES_USER=typecho
      - POSTGRES_PASSWORD=typecho
      - POSTGRES_DB=typecho
    networks:
      - typecho
    volumes:
      - ./postgres:/var/lib/postgresql/data

正文完
 0