version: "3"
services: 
  redis:
    image: redis
    container_name: redis
    ports: 
      - 6379:6379
    command: redis-server --requirepass 123456
  php: 
    restart: always
    image: registry.cn-hangzhou.aliyuncs.com/php_public/php 
    container_name: php 
    volumes: 
    - ./nginx/www:/var/www/html
    - ./php_conf:/usr/local/etc/php/conf.d
    links: 
      - redis:redis
    stdin_open: true
    tty: true
  nginx: 
    restart: always
    image: nginx
    links:
      - php
    ports: 
    - 80:80
    volumes: 
    - ./nginx/www:/usr/share/nginx/html:ro
    - ./nginx/conf/conf.d:/etc/nginx/conf.d:ro

  

相关文章:

  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2022-02-05
  • 2021-11-14
猜你喜欢
  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2022-01-25
相关资源
相似解决方案