Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mythic_postgres container cannot run when POSTGRES_USE_VOLUME=true #393

Closed
kernel-sanders opened this issue Jul 26, 2024 · 1 comment
Closed

Comments

@kernel-sanders
Copy link

The issue is the postgres config file copied into the container is called postgres.conf but the command line expects postgresql.conf.

The copy line is COPY ["postgres.conf", "/etc/postgres.conf"] from here.

The command line for the docker compose file is: pStruct["command"] = "postgres -c \"max_connections=100\" -p ${POSTGRES_PORT} -c config_file=/etc/postgresql.conf" from here.

This is not an issue if POSTGRES_USE_VOLUME is set to false because of the mapping is set correctly to postgresql.conf

When a user tries to run Mythic with POSTGRES_USE_VOLUME=true the mythic_postgres container just restarts with the logs showing:

mythic_postgres  | postgres: could not access the server configuration file "/etc/postgresql.conf": No such file or directory

I think the simplest fix would be to update the docker container to copy in the config to /etc/postgresql.conf and push a new container to the registry.

@its-a-feature
Copy link
Owner

Good catch! That should be fixed when this ( https://github.com/its-a-feature/Mythic/actions/runs/10148225060 ) finishes building

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

No branches or pull requests

2 participants