«

docker-compose 指定用户

时间:2024-7-31 13:07     作者:xiang     分类:


version: '3'
services:
  hyperf:
    image: dev-mineadmin-hyperf
    restart: always
    environment:
      - "TIMEZONE=Asia/Shanghai"
      - "APP_PROJECT=mineadmin-hyperf-dev"
      - "APP_SYSTEM_ENV=docker"
    working_dir: "/opt/www"
    user: ubuntu
    ports:
      - 7501:7501
      - 7502:7502
      - 7503:7503
    volumes:
      - .:/opt/www

networks:
  default:
    name: dev-mineadmin-hyperf