diff --git a/docker-compose.yml b/docker-compose.yml index a294e9a..6edad61 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,8 +4,6 @@ services: context: ./backend expose: - "8080" - env_file: - - .env environment: - PORT=8080 healthcheck: @@ -18,13 +16,13 @@ services: frontend: build: context: ./frontend - ports: - - "3000:3000" + expose: + - "3000" depends_on: backend: condition: service_healthy - env_file: - - .env + environment: + - API_URL=http://backend:8080 healthcheck: test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000"] interval: 30s