diff --git a/.env.example b/.env.example index 4ea7271..a2bc966 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ -PORT=3001 +PORT=3091 DB_PATH=/data/bots.db NODE_ENV=production # Set a strong random token — all WP sites must send this as: Authorization: Bearer diff --git a/Dockerfile b/Dockerfile index 0432ad3..61c8bfc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,13 +5,13 @@ RUN apk add --no-cache python3 make g++ WORKDIR /app COPY package*.json ./ -RUN npm ci --omit=dev +RUN npm install --omit=dev COPY . . RUN mkdir -p /data -EXPOSE 3000 +EXPOSE 3091 VOLUME ["/data"] CMD ["node", "server.js"] diff --git a/docker-compose.yml b/docker-compose.yml index 833aa33..a43ce66 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,16 +4,16 @@ services: container_name: bot-api restart: unless-stopped ports: - - "3001:3001" + - "3091:3091" volumes: - bot-data:/data environment: - - PORT=3001 + - PORT=3091 - DB_PATH=/data/bots.db - NODE_ENV=production - API_TOKEN=${API_TOKEN:-change-me-to-a-long-random-string} healthcheck: - test: ["CMD", "wget", "-qO-", "http://localhost:3001/api/v1/health"] + test: ["CMD", "wget", "-qO-", "http://localhost:3091/api/v1/health"] interval: 30s timeout: 5s retries: 3