version: "3" services: nginx: build: context: ./nginx/ dockerfile: dockerfile ports: - 80:80 networks: - server volumes: - ./nginx/conf.d:/etc/nginx/conf.d - ./nginx/sources.list:/etc/apt/sources.list - ${LOCAL_CODE_ROOT}:/var/www/http - ./log/nginx:/var/log/nginx container_name: nginx restart: always php74: build: context: ./php7.4/ dockerfile: dockerfile volumes: - ./php7.4/sources.list:/etc/apt/sources.list - ${LOCAL_CODE_ROOT}:/var/www/http networks: - server container_name: php74 ports: - 9000:9000 restart: always mysql: build: context: mysql/ dockerfile: dockerfile restart: always environment: MYSQL_ROOT_PASSWORD: root command: --default-authentication-plugin=mysql_native_password # platform: linux/amd64 # apple silicon networks: - server ports: - 3306:3306 container_name: mysql redis: build: context: ./redis/ dockerfile: dockerfile restart: always networks: - server # volumes: # - ${REDIS_DATA_PATH}:/data ports: - 6379:6379 container_name: redis python: build: context: ./ dockerfile: dockerfile volumes: - ${LOCAL_CODE_ROOT}:/code networks: - server container_name: python ports: - 8000:8000 networks: server: