Skip to content

Commit

Permalink
Merge pull request #56 from HyunggyuJang/build/docker-from-rootdir
Browse files Browse the repository at this point in the history
Build docker files from root dir
  • Loading branch information
danny-avila authored Mar 13, 2023
2 parents 6a16d31 + 70d59c5 commit 5d65427
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ MONGO_URI="mongodb://127.0.0.1:27017/chatgpt-clone"
# Leave blank if you don't want them.
OPENAI_KEY=
CHATGPT_TOKEN=
BING_TOKEN=
BING_TOKEN=
14 changes: 8 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: "2"
services:
client:
image: react-client
build: ./client
restart: always
ports:
- "3080:80"
Expand All @@ -15,13 +16,14 @@ services:
- webappnetwork
api:
image: node-api
build: ./api
restart: always
env_file:
- ./api/.env
environment:
- "PORT=3080"
- "MONGO_URI=mongodb://mongodb:27017/chatgpt-clone"
- "OPENAI_KEY="
- "CHATGPT_TOKEN="
- "BING_TOKEN="
- HOST=0.0.0.0
- NODE_ENV=production
- MONGO_URI=mongodb://mongodb:27017/chatgpt-clone
ports:
- "9000:3080"
volumes:
Expand All @@ -45,4 +47,4 @@ services:

networks:
webappnetwork:
driver: bridge
driver: bridge

0 comments on commit 5d65427

Please sign in to comment.