乐趣区

关于typecho:使用dockercompose启动typecho

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
退出移动版