Skip to content

Commit

Permalink
Port config changed
Browse files Browse the repository at this point in the history
  • Loading branch information
sikehish committed Jun 9, 2024
1 parent 9be2d1d commit c67e8a9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
commands.txt
commands.txt
.env
23 changes: 17 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,32 @@ services:
context: ./backend
ports:
- "3000:3000"
env_file:
- ./backend/.env
environment:
- GOOGLE_API_KEY=$GOOGLE_API_KEY
- MONGO_URI=$MONGO_URI
- MONGO_PW=$MONGO_PW
- PORT=$PORT
- JWT_KEY=$JWT_KEY
- JWT_VERIFY_KEY=$JWT_VERIFY_KEY
- JWT_ADMIN_KEY=$JWT_ADMIN_KEY
- GEMINI_KEY=$GEMINI_KEY
- REDIS_PASSWORD=$REDIS_PASSWORD
- REDIS_URI=$REDIS_URI
- OAUTH_CLIENT_ID=$OAUTH_CLIENT_ID
- OAUTH_CLIENT_SECRET=$OAUTH_CLIENT_SECRET
- CLIENT_URL=$CLIENT_URL
volumes:
- /app/node_modules
- ./backend:/app

frontend:
build:
context: ./frontend
ports:
- "5173:5000"
- "80:80"
volumes:
- /app/node_modules
- ./frontend:/app
env_file:
- ./frontend/.env
environment:
- VITE_REACT_APP_API_URL=$VITE_REACT_APP_API_URL
depends_on:
- backend
2 changes: 1 addition & 1 deletion frontend/default.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server {
listen 5000;
listen 80;

location / {
root /usr/share/nginx/html;
Expand Down

0 comments on commit c67e8a9

Please sign in to comment.