Skip to content

Commit

Permalink
chore(docker): fix host binding in container (waylaidwanderer#399)
Browse files Browse the repository at this point in the history
Use prebuild image from ghcr and
match working directory in dockerfile
  • Loading branch information
hibobmaster authored Jun 2, 2023
1 parent dbef81d commit 74ddbdf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM node:16-alpine

ENV API_HOST=0.0.0.0
WORKDIR /app
COPY . .

Expand Down
10 changes: 6 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
version: '3'
services:
app:
build:
context: .
dockerfile: ./Dockerfile
# build:
# context: .
# dockerfile: ./Dockerfile
image: ghcr.io/waylaidwanderer/node-chatgpt-api:latest
restart: unless-stopped
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
volumes:
- ./settings.js:/var/chatgpt-api/settings.js:cached
- ./settings.js:/app/settings.js:cached
ports:
- '${APP_PORT:-3000}:3000'

0 comments on commit 74ddbdf

Please sign in to comment.