version: "3.9" networks: chess: services: # Nginx Web server webserver: image: nginx:stable-alpine container_name: webserver restart: unless-stopped volumes: - ./:/var/www/html/ - ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf:rw - ./storage:/var/www/html/storage:rw - ./docker/logs/nginx:/var/logs/nginx:rw tty: true ports: - "8300:80" depends_on: - php links: - php networks: - chess # PHP Service php: container_name: php7.4 volumes: - ./:/var/www/html build: context: . dockerfile: Dockerfile restart: unless-stopped tty: true working_dir: /var/www/html networks: - chess