使用docker-compose启动typecho

Hegel_Gu
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
阅读 201

风满楼
风乍起,吹皱一池春水,干卿底事?

Do not go gentle into that good night

1.6k 声望
25 粉丝
0 条评论

Do not go gentle into that good night

1.6k 声望
25 粉丝
文章目录
宣传栏