Skip to content

Commit

Permalink
mod: build後に更に上書きしてしまう為volume mountの削除
Browse files Browse the repository at this point in the history
  • Loading branch information
geniusmaaakun committed Dec 16, 2023
1 parent ca91133 commit f4647e3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/node_modules
22 changes: 17 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,26 @@ services:
frontend:
build:
context: ./frontend
tty: true
volumes:
- ./frontend:/frontend
# tty: true
# volumes:
# - ./frontend:/frontend
ports:
- "3000:3000"
networks:
- ft_transcendence

# Backend - NestJS service
backend:
build:
context: ./backend
volumes:
- ./backend:/backend
# volumes:
# - ./backend:/backend
ports:
- "3001:3000"
networks:
- ft_transcendence
depends_on:
- database

# Database - PostgreSQL service
database:
Expand All @@ -30,6 +36,12 @@ services:
POSTGRES_DB: ts_database
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- ft_transcendence

networks:
ft_transcendence:
driver: bridge

volumes:
pgdata:
1 change: 1 addition & 0 deletions frontend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/node_modules

0 comments on commit f4647e3

Please sign in to comment.