Skip to content

Instantly share code, notes, and snippets.

@qqcf
Created October 12, 2023 13:07
Show Gist options
  • Save qqcf/735b0cf2b42f2b12efa7570f7a1feb40 to your computer and use it in GitHub Desktop.
Save qqcf/735b0cf2b42f2b12efa7570f7a1feb40 to your computer and use it in GitHub Desktop.

Revisions

  1. qqcf created this gist Oct 12, 2023.
    35 changes: 35 additions & 0 deletions typecho-docker-compose.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    version: '3.7'

    services:
    typecho:
    image: joyqi/typecho:nightly-php7.4-apache
    container_name: typecho-server
    restart: always
    environment:
    - TYPECHO_SITE_URL=https://example.com
    - TYPECHO_INSTALL=1
    - TYPECHO_USER_NAME=yourname
    - [email protected]
    - TYPECHO_DB_HOST=db
    - TYPECHO_DB_USER=exampleuser
    - TYPECHO_DB_PASSWORD=examplepass
    - TYPECHO_DB_DATABASE=exampledb
    ports:
    - 127.0.0.1:8080:80
    volumes:
    - typecho:/app/usr

    db:
    image: mysql
    restart: always
    environment:
    MYSQL_DATABASE: exampledb
    MYSQL_USER: exampleuser
    MYSQL_PASSWORD: examplepass
    MYSQL_RANDOM_ROOT_PASSWORD: '1'
    volumes:
    - db:/var/lib/mysql

    volumes:
    typecho:
    db: