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
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。