ptpb / pb

pb is a formerly-lightweight pastebin and url shortener
Other
549 stars 52 forks source link

Docker-compose deployment #253

Open meichthys opened 3 years ago

meichthys commented 3 years ago

I tried a docker-compose deployment using an image from dockerhub without success. Could someone take a look at my docker-compose below and let me know if something looks off?

version: "3"
services:
  pb:
    container_name: pb
    image: ptpb/pb
    ports:
      - '10008:10002'
    volumes:
      - pb_data:/pb
    environment:
      - 'LISTEN_ADDRESS=::'
      - 'LISTEN_PORT=10008'
      - 'CDN_PREFIX=//d34zelngniy2d8.cloudfront.net'

  pb_mongodb:
    container_name: mongodb_pb
    image: mongo:latest

volumes:
  pb_data:

After running docker-compose up -d I cannot access: http://docker_ip_address:10008 😕

DevelopedByAnurag commented 3 years ago

Hey Did it worked as I am facing a similar issue

meichthys commented 3 years ago

@DevelopedByAnurag No, i wasn't able to get it going on my end, but i'm also not that well versed in Docker, so it could have been a simple config mistake on my part.

DevelopedByAnurag commented 3 years ago

@meichthys it worked for me run it with Sudo privileges and I was able to run it at localhost as well as on MongoDB atlas