Back

Is it possible to change environment variable directly inside docker container?

  • 0
  • Self Hosted
  • Android
  • Web
  • Tools
Matt
13 Nov, 2023, 23:44

I need to change .env but i can't access the admin account from the web.

TL;DR
The user is asking if it's possible to change environment variables directly inside a Docker container. They are also asking about alternative providers for sending OTPs to Iraqi numbers. The solution provided is to change the OTP environment variable in the Docker compose file, or alternatively, access the MariaDB database manually. It is also suggested to ask for sharing access to the account or to edit the Docker compose file located in the AWS server. The user mentions that they only have access to the AWS server and not to the Appwrite admin account from the web interface. It is clarified that editing environment variables must be done through the server directly and cannot be done from
D5
13 Nov, 2023, 23:53

Yes, in fact it's not possible to change env variables from the web interface

D5
13 Nov, 2023, 23:54

You always need to do it through the server directly

D5
13 Nov, 2023, 23:55

You're self-hosting appwrite instead of using Appwrite cloud, true?

Matt
13 Nov, 2023, 23:57

yes we self hosting to aws

Matt
13 Nov, 2023, 23:57

where the .env file path location usually?

D5
14 Nov, 2023, 00:01

If I'm not wrong the end file should be created, however and alternatively if you don't have data in the instance or anything, you can edit the docker-compose.yml file located in your appwrite installation folder (usually called appwrite and located in the main folder)

Matt
14 Nov, 2023, 00:03

the project is a legacy from the previous developers, and they only gave me access to the AWS server, without giving access to the Appwrite

D5
14 Nov, 2023, 00:03

Oh, I see

D5
14 Nov, 2023, 00:03

Then it will be better doing a backup in such case

Matt
14 Nov, 2023, 00:04

in the project i only knew the endpoint, project id, also some databases

Matt
14 Nov, 2023, 00:05

so its still possible to change configuration environment? i need to enable phone verification

D5
14 Nov, 2023, 00:05

I think in such case your issue is more complex because if you whitelist your email, you will be able to create an account in the instance with projects, but you will not be able to access projects located on other accounta

Matt
14 Nov, 2023, 00:06

so there's no solution?

D5
14 Nov, 2023, 00:06

You mean changing project setting?

Matt
14 Nov, 2023, 00:06

i need phone verification only for send the otp code

Matt
14 Nov, 2023, 00:07

no only enable phone verification

D5
14 Nov, 2023, 00:07

Easier solution is to tell them sharing access to their account. An alternative will probably be accessing manually the MariaDB database with some editor

D5
14 Nov, 2023, 00:08

For that you can change the OTP env var in the docker compose file (make a backup of everything before)

Matt
14 Nov, 2023, 00:11

the problem is i can't find the docker compose file, etc inside the server AWS, there's only file .tar

Matt
14 Nov, 2023, 00:12

did they deploy automatically from the web or third-party?

Matt
14 Nov, 2023, 00:34

my bad, i already find the docker compose file

Matt
14 Nov, 2023, 00:37

now i have another question, its possible to set provider except twilio, text magic or telesign @D5 ?? we are using this https://sms.standingtech.com/

Matt
14 Nov, 2023, 00:38

we need otp sent to iraqi number

D5
14 Nov, 2023, 09:21

Not sure about this, but probably one of those is able to send to Iraqi numbers

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more