P
Postiz3mo ago
Support

Ticket: Issues with .env file in Docker setup

@elpibegeek Just created a ticket
Question: Hello guys. I am having some problem with the env file. Cannot make this file be recognized or not understanding where is the config route folder. Do you know how to find the .env file? Or am I doing something wrong with the configuration I made?
Attempted: I have sucessfully installed Postiz. The I've changed the volume "postiz-config: /config/" to "/home/ubuntu/postiz/config: /config/" on the docker file before making the "docker compose up -d" command and also created a file called "postiz.env" and placed all the strings for the API keys This method is not working as there all multiple api keys placed but the when I try to connect to them, prints me error
Working On: Docker compose
Using Postiz On: Ubuntu server on OCI Oracle Cloud
Take it from here @Postiz
6 Replies
xcons
xcons3mo ago
Hey the file should be "postiz.env" Please could you post the error message you're getting
elpibegeek
elpibegeek3mo ago
Hello James. Thanks for the reply! This is the volumes part of my docker-compose.yml file: volumes: - /var/lib/docker/volumes/postiz_postiz-config/_data:/config/ - postiz-uploads:/uploads/ ports: - 5000:5000 - 3008:3000 And the place where I am updating the "postiz.env" is: "/var/lib/docker/volumes/postiz_postiz-config/_data" The error for example from Threads: "{ "error_message": "An unknown error has occurred.", "error_code": 1 }" And i.e for Twitter, please see the image
No description
xcons
xcons3mo ago
Could you show me the container logs please for Postiz?
Support
SupportOP3mo ago
@Postiz please help @elpibegeek
xcons
xcons2mo ago
@elpibegeek ping?
m4rk
m4rk2mo ago
My solution was to place a file named .env with all the information needed, in the same folder as the docket-compose.yml The .env file shouldn’t have anything else it should be named .env and that’s it

Did you find this page helpful?