version: '3.8' services: web: build: . container_name: stock-portfolio-web ports: - "8080:8080" env_file: - .env restart: always healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/"] interval: 30s timeout: 5s retries: 3