Hi can anyone tell me what am i doing wrong i upl...
# orm-help
c
Hi can anyone tell me what am i doing wrong i uploaded this docker-compose.yml file on digitalocean and run it with “docker-compose up -d” it ran perfectly but the server kept throwing an error. I have attached the screenshot below take a look thanks. this is how my docker file looks like version: '3' services: prisma: image: prismagraphql/prisma:1.22 restart: always ports: - "8501:8501" environment: PRISMA_CONFIG: | port: 8501 databases: default: connector: mongo uri: mongodb+srv://demo:demo123@clussds-swas.mongodb.net/admin database: prisma
o
What the playground Urls address make sure the port is 8501 . And make sure the database server it’s work
c
when i ran it locally it worked but when i ran it on server it didnt ..i dont know what is the problem there on server. Is it somehting with the port ?
w
if you use localhost addresses like
localhost:8501
or
127.0.0.1:8501
it will work locally but not inside the docker. access the service via it's docker NAME wchish is in your case
prisma
, so
PRISMA_ADDRESS=<http://prisma:8501>