services: # Nginx Proxy Manager (站在最前面的門神) app: image: 'jc21/nginx-proxy-manager:latest' container_name: nginxproxymanager restart: unless-stopped ports: - '80:80' - '443:443' - '81:81' environment: TZ: 'Asia/Taipei' DISABLE_IPV6: 'true' volumes: - ./data:/data - ./letsencrypt:/etc/letsencrypt - /etc/localtime:/etc/localtime:ro dns: - 8.8.8.8 - 1.1.1.1 # PHP Apache 服務 php: image: timmy/php_base:v1.0 container_name: php restart: always tty: true stdin_open: true ports: - "8001:80" volumes: - "./html:/var/www/html" - "./logs:/var/log/apache2/custom" # 映射到自定義 Log 目錄 - /etc/localtime:/etc/localtime:ro environment: TZ: 'Asia/Taipei' MEMCACHED_HOST: memcached MEMCACHED_PORT: 11211 depends_on: - memcached # 資料庫管理工具 adminer: image: adminer container_name: adminer restart: always ports: - "8080:8080" environment: TZ: 'Asia/Taipei' volumes: - /etc/localtime:/etc/localtime:ro # 快取服務 memcached: image: memcached:1.6 command: ["-m", "64", "-p", "11211", "-vv"] environment: TZ: 'Asia/Taipei' volumes: - /etc/localtime:/etc/localtime:ro