Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Stopped for a few seconds with exit code 1 #10

Open
Yersi88 opened this issue Jan 9, 2021 · 4 comments
Open

Stopped for a few seconds with exit code 1 #10

Yersi88 opened this issue Jan 9, 2021 · 4 comments

Comments

@Yersi88
Copy link

Yersi88 commented Jan 9, 2021

Hi, I can’t start the container it exits with above code all the time.

Log stops at:
django.db.utils.OperationalError: could not translate host name "database" to address: Name does not resolve

@lubo
Copy link

lubo commented Jan 9, 2021

Hi @Yersi88. The error message is pretty self-explanatory, so I don't really understand what you think is the issue here.

@Yersi88
Copy link
Author

Yersi88 commented Jan 9, 2021

Hello @lubo, I'm sorry for opening issue when it's just my incompetence :) But, I just have no idea how to set it up, I know I need to edit config file but I have no idea how to do it as it takes the config file from the repository. (I use portrainer to deploy my docker containers. Maybe some more detaled installation instructions for noobs?

Thanks for the reply!

@Nasjoe
Copy link

Nasjoe commented Jan 24, 2021

add the settings.py file to the docker-compose volume and change the name of your database with the name of the docker service :)

@Yersi88
Copy link
Author

Yersi88 commented Jan 24, 2021

add the settings.py file to the docker-compose volume and change the name of your database with the name of the docker service :)

Thank you, indeed it's working after that. However, I'm now it seems I'm unable to populate the database.

Here are some logs from Containers > docker-taiga-5_migrations_1 > Logs

Trying import local.py settings...

System check identified some issues:

:

?: (security.W004) You have not set a value for the SECURE_HSTS_SECONDS setting. If your entire site is served only over SSL, you may want to consider setting a value and enabling HTTP Strict Transport Security. Be sure to read the documentation first; enabling HSTS carelessly can cause serious, irreversible problems.

?: (security.W008) Your SECURE_SSL_REDIRECT setting is not set to True. Unless your site should be available over both SSL and non-SSL connections, you may want to either set this setting True or configure a load balancer or reverse-proxy server to redirect all connections to HTTPS.

?: (security.W012) SESSION_COOKIE_SECURE is not set to True. Using a secure-only session cookie makes it more difficult for network traffic sniffers to hijack user sessions.

System check identified 3 issues (4 silenced).

Trying import local.py settings...

Installed 3 object(s) from 2 fixture(s)

Trying import local.py settings...

System check identified some issues:

:

?: (security.W004) You have not set a value for the SECURE_HSTS_SECONDS setting. If your entire site is served only over SSL, you may want to consider setting a value and enabling HTTP Strict Transport Security. Be sure to read the documentation first; enabling HSTS carelessly can cause serious, irreversible problems.

?: (security.W008) Your SECURE_SSL_REDIRECT setting is not set to True. Unless your site should be available over both SSL and non-SSL connections, you may want to either set this setting True or configure a load balancer or reverse-proxy server to redirect all connections to HTTPS.

?: (security.W012) SESSION_COOKIE_SECURE is not set to True. Using a secure-only session cookie makes it more difficult for network traffic sniffers to hijack user sessions.

System check identified 3 issues (4 silenced).

Trying import local.py settings...

Installed 3 object(s) from 2 fixture(s)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants