Merge pull request #56 from HyunggyuJang/build/docker-from-rootdir

Build docker files from root dir
This commit is contained in:
Danny Avila 2023-03-13 13:17:23 -04:00 committed by GitHub
commit 5d65427a6e
2 changed files with 9 additions and 7 deletions

View file

@ -19,4 +19,4 @@ MONGO_URI="mongodb://127.0.0.1:27017/chatgpt-clone"
# Leave blank if you don't want them. # Leave blank if you don't want them.
OPENAI_KEY= OPENAI_KEY=
CHATGPT_TOKEN= CHATGPT_TOKEN=
BING_TOKEN= BING_TOKEN=

View file

@ -3,6 +3,7 @@ version: "2"
services: services:
client: client:
image: react-client image: react-client
build: ./client
restart: always restart: always
ports: ports:
- "3080:80" - "3080:80"
@ -15,13 +16,14 @@ services:
- webappnetwork - webappnetwork
api: api:
image: node-api image: node-api
build: ./api
restart: always restart: always
env_file:
- ./api/.env
environment: environment:
- "PORT=3080" - HOST=0.0.0.0
- "MONGO_URI=mongodb://mongodb:27017/chatgpt-clone" - NODE_ENV=production
- "OPENAI_KEY=" - MONGO_URI=mongodb://mongodb:27017/chatgpt-clone
- "CHATGPT_TOKEN="
- "BING_TOKEN="
ports: ports:
- "9000:3080" - "9000:3080"
volumes: volumes:
@ -45,4 +47,4 @@ services:
networks: networks:
webappnetwork: webappnetwork:
driver: bridge driver: bridge