Skip to content

Update docker-compose.yml #450

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

Merged
merged 2 commits into from
Jan 17, 2020
Merged

Update docker-compose.yml #450

merged 2 commits into from
Jan 17, 2020

Conversation

spanishkangaroo
Copy link
Contributor

Using the provided docker-compose.yml and nginx.conf files, the stack fails by throwing the following error:

FATAL: data directory “/var/lib/postgresql/data/pgdata” has wrong ownership
HINT: The server must be started by the user that owns the data directory.

The issue is easily solved by replacing the volumen part in the postgres definition with:

volumes: - /var/lib/postgresql/data

Regards,

Using the provided docker-compose.yml and nginx.conf files, the stack fails by throwing the following error:

FATAL: data directory “/var/lib/postgresql/data/pgdata” has wrong ownership
HINT: The server must be started by the user that owns the data directory.

The issue is easily solved by replacing the volumen part in the postgres definition with:

volumes: - /var/lib/postgresql/data

Regards,
@coveralls
Copy link

coveralls commented Nov 28, 2019

Coverage Status

Coverage decreased (-0.5%) to 80.231% when pulling a295052 on spanishkangaroo:patch-1 into 3dec49d on Wirecloud:develop.

@aarranz
Copy link
Member

aarranz commented Dec 3, 2019

Hi @spanishkangaroo,

First, thanks for your interest on WireCloud. However, this change does not make sense for me. Can you provide more details? What operating system are you using?

I guess you are using Windows and you are suffering one of the integration problems that raises when using this operating system. In this case, I think is better to use a named volume as suggested in this thread as this will provide better persistence management (volume persistence between container recreations, for example).

@spanishkangaroo
Copy link
Contributor Author

spanishkangaroo commented Dec 3, 2019 via email

@aarranz aarranz merged commit df3b9b9 into Wirecloud:develop Jan 17, 2020
@aarranz
Copy link
Member

aarranz commented Jan 17, 2020

Hi @spanishkangaroo,

Sorry for the late response, I've updated docker-compose example files to use named volumes, this should make them work on any operating system, including windows 😄.

Best regards.

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

Successfully merging this pull request may close these issues.

3 participants