Skip to content

php的docker 啟動時缺少php.ini設定 #2

Description

@luckynu

php的docker 啟動時缺少php.ini設定
需要在啟動的時候掛載設定
不然PHP的設定都是用預設的參數有點不太好

php:
image: kjlion/php:fpm-alpine
container_name: php
restart: always
volumes:
- ./html:/var/www/html
- ./php.ini:/usr/local/etc/php/php.ini

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions