Skip to content

Commit 8c4a936

Browse files
committed
🐳handle dockerizing api and database
1 parent d9b5cfb commit 8c4a936

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

docker-compose.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
services:
2-
client:
3-
container_name: ngca_client
4-
build:
5-
context: ./frontend/
6-
dockerfile: Dockerfile
7-
image: ngca_client
8-
ports:
9-
- "${APP_PORT}:3000"
10-
environment:
11-
NEXTAUTH_URL: http://localhost:3000
2+
# client:
3+
# container_name: ngca_client
4+
# build:
5+
# context: ./frontend/
6+
# dockerfile: Dockerfile
7+
# image: ngca_client
8+
# ports:
9+
# - "${APP_PORT}:3000"
10+
# environment:
11+
# NEXTAUTH_URL: http://localhost:3000
12+
# AUTH_URL: http://localhost:3000
1213
api:
1314
container_name: ngca_server
1415
build:

frontend/lib/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const authOptions: NextAuthOptions = {
1919
}
2020

2121
try {
22-
const res = await fetch("http://127.0.0.1:8000/api/login", {
22+
const res = await fetch("http://localhost:8000/api/login", {
2323
method: "POST",
2424
headers: {
2525
"Content-Type": "application/json",

0 commit comments

Comments
 (0)