Where you get this error exactly?
Can you run these commands:
docker psdocker logs appwrite
And share the results?
Votes
0
Replies
24
Participants
Unknown
Messages
25
Where you get this error exactly?
Can you run these commands:
docker psdocker logs appwriteAnd share the results?
Rank 1: Thread
yes, I run and share.
Rank 1: Thread
with the command docker ps, output the following:
Rank 1: Thread
and with command docker logs appwrite:
Everything seems in order
Can you share the first part of your docker-compose.yml file the part of traefik?
services: traefik: image: traefik:2.7 container_name: appwrite-traefik <<: *x-logging command: - --providers.file.directory=/storage/config - --providers.file.watch=true - --providers.docker=true - --providers.docker.exposedByDefault=false - --providers.docker.constraints=Label(`traefik.constraint-label-stack`,`appwrite`) - --entrypoints.appwrite_web.address=:80 - --entrypoints.appwrite_websecure.address=:443 restart: unless-stopped ports: - 80:80 - 443:443 volumes: - /var/run/docker.sock:/var/run/docker.sock - appwrite-config:/storage/config:ro - appwrite-certificates:/storage/certificates:ro depends_on: - appwrite networks: - gateway - appwriteRank 1: Thread
yes: traefik:
image: traefik:2.7
container_name: appwrite-traefik
<<: *x-logging
command:
- --providers.file.directory=/storage/config
- --providers.file.watch=true
- --providers.docker=true
- --providers.docker.exposedByDefault=false
- --providers.docker.constraints=Label(traefik.constraint-label-stack,appwrite)
- --entrypoints.appwrite_web.address=:${APPWRITE_PORT}
- --entrypoints.appwrite_websecure.address=:${APPWRITE_ADDRESS}
restart: unless-stopped
ports:
- ${APPWRITE_PORT}:${APPWRITE_PORT}
- ${APPWRITE_ADDRESS}:${APPWRITE_ADDRESS}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- appwrite-config:/storage/config:ro
- appwrite-certificates:/storage/certificates:ro
depends_on:
- appwrite
networks:
- gateway
- appwrite
environment:
- APPWRITE_PORT
- APPWRITE_ADDRESS
appwrite:
image: appwrite/appwrite:1.2.1
container_name: appwrite
<<: *x-logging
restart: unless-stopped
networks:
- appwrite
Rank 1: Thread
Okay, everything fine, just
1.3.4 - --entrypoints.appwrite_web.address=:80 - --entrypoints.appwrite_websecure.address=:443 restart: unless-stopped ports: - ${APPWRITE_PORT}:80 - ${APPWRITE_PORT}:443Is this make sense?
Rank 1: Thread
Yes, I understand but I have the ports and other credentials in my env file, and that's how I work. For example:
You can keep those on 88 and 447 but, you'll need to set the rest of the values as 80 and 443 as I did here
Rank 1: Thread
ok, thanks
Lmn if it works
Rank 1: Thread
I am going to try
Admin
Where is this request coming from?
Rank 1: Thread
Good afternoon @Steven : is making the django rest framework request to appwrite
Admin
You're making a request from DRF in one docker container to another docker container and using localhost as the hostname?
Rank 1: Thread
I do not understand your question
Admin
What part?
Rank 1: Thread
This question
Admin
What part of the question?
Rank 1: Thread
In response I explain and clarify the following: I have my services in docker and appwrite is also installed in "docker"
Rank 1: Thread
?
Admin
right it sounds like both are in docker containers. so if you're making a request in DRF to localhost, that's going to hit itself, not the other Appwrite container
Admin
Docker to Docker Request