Skip to content

Commit

Permalink
docker-compose-dev.yml 파일 수정
Browse files Browse the repository at this point in the history
docker-compose-dev.yml 파일에서 불필요한 공백을 제거하고, front 서비스 관련 설정을 삭제했습니다.

주요 변경사항:
1. db, server, weather 서비스의 환경 변수 설정에서 불필요한 공백 제거
2. front 서비스 설정 삭제 (container_name, image, platform, restart, environment, env_file, volumes, working_dir, ports, networks, command)
  • Loading branch information
jihwooon committed Jan 7, 2025
1 parent eac4e0e commit a4a6474
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
db:
container_name: dangdang-mysql
container_name: dangdang-mysql
image: mysql:8.0.22
platform: linux/amd64
environment:
Expand Down Expand Up @@ -28,7 +28,7 @@ services:
context: ./backend
dockerfile: ./server/Dockerfile
environment:
- MYSQL_HOST=db
- MYSQL_HOST=db
env_file:
- ./backend/server/.env.local
volumes:
Expand Down Expand Up @@ -63,7 +63,7 @@ services:
build:
context: ./backend
dockerfile: ./weather-api-module/Dockerfile
environment:
environment:
- REDIS_HOST=redis
env_file:
- ./backend/weather-api-module/.env.local
Expand All @@ -79,31 +79,6 @@ services:
working_dir: /app/weather-api-module
command: npm run start


front:
container_name: dangdang-frontend
image: dangdang-front
platform: linux/amd64
restart: unless-stopped
# build:
# context: ./frontend
# dockerfile: Dockerfile
# target: dev
environment:
- REACT_APP_NEST_BASE_URL=server:3333
- REACT_APP_WEATHER_MODULE_URL=weather:3335
env_file:
- ./frontend/.env.local
volumes:
- ./frontend:/app
- /app/node_modules
working_dir: /app
ports:
- 3000:3000
networks:
- my_network
command: npm start

networks:
my_network:
driver: bridge
Expand Down

0 comments on commit a4a6474

Please sign in to comment.