Created
May 16, 2021 05:23
-
-
Save a1994sc/abfcc09f6b758dfce69523e2ac565f67 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "xBrowserSync_api", | |
"hostname": "7d8549e34a6b", | |
"pid": 1, | |
"level": 50, | |
"req": null, | |
"err": { | |
"message": "Authentication failed.", | |
"name": "MongoError", | |
"stack": "MongoError: Authentication failed.\n at MessageStream.messageHandler (/usr/src/api/node_modules/mongodb/lib/cmap/connection.js:268:20)\n at MessageStream.emit (events.js:315:20)\n at processIncomingData (/usr/src/api/node_modules/mongodb/lib/cmap/message_stream.js:144:12)\n at MessageStream._write (/usr/src/api/node_modules/mongodb/lib/cmap/message_stream.js:42:5)\n at writeOrBuffer (internal/streams/writable.js:358:12)\n at MessageStream.Writable.write (internal/streams/writable.js:303:10)\n at Socket.ondata (internal/streams/readable.js:719:22)\n at Socket.emit (events.js:315:20)\n at addChunk (internal/streams/readable.js:309:12)\n at readableAddChunk (internal/streams/readable.js:284:9)\n at Socket.Readable.push (internal/streams/readable.js:223:10)\n at TCP.onStreamRead (internal/stream_base_commons.js:188:23)", | |
"code": 18 | |
}, | |
"msg": "Unable to connect to database", | |
"time": "2021-05-16T04:28:08.200Z", | |
"v": 0 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"db": { | |
"host": "mongodb_mongodb", | |
"name": "xbrowsersync", | |
"username": "xbs", | |
"password": "<password>" | |
}, | |
"maxSyncs": 1, | |
"maxSyncSize": 10240000, | |
"status": { | |
"allowNewSyncs": true, | |
"message": "Derpaholic xBrowserSync." | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
api: | |
image: "xbrowsersync/api:1.1.13" | |
volumes: | |
- xbs_data:/usr/src/api/ | |
ports: | |
- 8082:8080 | |
deploy: | |
labels: | |
- "traefik.enable=true" | |
- "traefik.http.routers.xbs.entrypoints=http" | |
- "traefik.http.middlewares.xbs-https-redirect.redirectscheme.scheme=https" | |
- "traefik.http.routers.xbs.middlewares=xbs-https-redirect" | |
- "traefik.http.routers.xbs-secure.entrypoints=https" | |
- "traefik.http.routers.xbs-secure.tls=true" | |
- "traefik.http.routers.xbs-secure.service=xbs" | |
- "traefik.docker.network=proxy" | |
- "traefik.http.routers.xbs.rule=Host(`xbs.in.derpaholic.com`)" | |
- "traefik.http.routers.xbs-secure.rule=Host(`xbs.in.derpaholic.com`)" | |
- "traefik.http.services.xbs.loadbalancer.server.port=8080" | |
placement: | |
constraints: | |
- node.labels.xbs.settings==true | |
networks: | |
- proxy | |
healthcheck: | |
test: [ "CMD", "node", "/usr/src/api/healthcheck.js" ] | |
interval: "1m" | |
timeout: "10s" | |
retries: 5 | |
start_period: "30s" | |
volumes: | |
xbs_data: | |
networks: | |
proxy: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment