Created
October 12, 2023 13:07
-
-
Save qqcf/735b0cf2b42f2b12efa7570f7a1feb40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The default admin password can be obtained using this command.
docker logs