Docker File does not start with default parameters #839
Replies: 6 comments 3 replies
-
The The Lines 19 to 26 in e4ac5c8 I wonder if it might be a bit clearer to write our compose example file this way? diff --git a/docker-compose.example.yml b/docker-compose.example.yml
index f7f1a3c..a452a0f 100644
--- a/docker-compose.example.yml
+++ b/docker-compose.example.yml
@@ -7,8 +7,6 @@ services:
ports:
- 127.0.0.1:3000:3000
restart: unless-stopped
- env_file:
- - .env
environment:
SELF_HOSTING_ENABLED: true
DB_HOST: postgres
@@ -16,6 +14,8 @@ services:
RAILS_ASSUME_SSL: false
POSTGRES_USER: postgres
GOOD_JOB_EXECUTION_MODE: async
+ SECRET_KEY_BASE: ${SECRET_KEY_BASE}
+ POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
depends_on:
postgres:
condition: service_healthy |
Beta Was this translation helpful? Give feedback.
-
I just honestly didn't understand the point about the .env file . I don't understand yml very well .
to
But that didn't help either.
So, docker just doesn't see the settings file and what to do to make it work I didn't understand(
And nothing helped(. It wrote an error that SECRET_KEY_BASE is waiting for a string. So, either I need to discard the customization file or add:
Translated with DeepL.com (free version) |
Beta Was this translation helpful? Give feedback.
-
@Daniel-RUS by default, Docker compose looks for a file with the exact name of It's hard for me to know what has been changed and what has not in your local setup, so would you mind starting from scratch following the exact steps provided in the Docker setup guide? If anything fails, let me know the step that was either not clear or did not work and I'll get the guide updated. |
Beta Was this translation helpful? Give feedback.
-
The command to create the file is not clear. I just manually created the file. Even if we specify the file name maybe.env , we still get the following error: error while interpolating services.postgres.environment.POSTGRES_PASSWORD: required variable POSTGRES_PASSWORD is missing a value
Who knows, will change it. And those who don't know how it works will get a positive result. And not like me - I had to read more on this thing. And in the env file write like this:
This is to make it clear how to write with “” or '' or without anything. However, I did all that and with the env file I get an error:
That is, it doesn't see the POSTGRES_PASSWORD field. I don't know why. Also after startup, the standard login and password didn't work. And this is strange. The whole problem arose that I do not know all the parameters of yml file. I really walked according to the instructions and did not get a result. Because you need to adapt the yml file. I had to change something in it. |
Beta Was this translation helpful? Give feedback.
-
I hope I haven't upset you too much. You have come a long way and I am a novice user. Thank you for developing the application. |
Beta Was this translation helpful? Give feedback.
-
I don't know if it is necessary to change it, but they usually write
So, as you did is more safely, but maybe someone will have a surprise that the application on the server opens, but there is no PC on the phone or another PC.
`services: app: postgres: volumes: |
Beta Was this translation helpful? Give feedback.
-
It is necessary to add the docker-compose.example.yml of the mandatory configuration parameters to the File:
It was:
RAILS_FORCE_SSL: false
RAILS_ASSUME_SSL: false
POSTGRES_USER: postgres
GOOD_JOB_EXECUTION_MODE: async
It is necessary to supplement the configuration file with even parameters (or at least a mandatory parameter!):
SECRET_KEY_BASE: [ADD DATA]
SYNTH_API_KEY: [ADD DATA]
Beta Was this translation helpful? Give feedback.
All reactions