services: php: image: timmy/php_base:v1.0 container_name: php restart: always tty: true stdin_open: true ports: - "8888:80" volumes: - "./html:/var/www/html" # 將目前目錄下的 html 資料夾對映進去 environment: MEMCACHED_HOST: memcached MEMCACHED_PORT: 11211 depends_on: - memcached memcached: image: memcached:1.6 command: ["-m", "64", "-p", "11211", "-vv"]