pt@pt-desktop:~/www$ more docker-compose.yml
version: '3'
services:
  nginx:
    build: ./
    image: nginx
    ports:
      - 8888:80
    volumes:
      - ./src:/usr/share/nginx/html
    restart: alwaysの(ネストの位置に気をつけて)"restart: always"を付けた後、"$ docker compose build"をしておくこと。
以上