How can I Enable Unaccent for postgres in Docker-Compose?
I need to enable the accents for postgreSQL. This is my
docker-compose.yml, but it doesn’t work. Any tips? Thank you.
db: image: postgres ports: - 5432 environment: DB_UNACCENT: true mailcatcher: image: aboutsource/mailcatcher ports: - "1080:1080" web: build: . command: passenger start --port 3000 volumes: - .:/myapp environment: - RAILS_ENV=development ports: - "3000:3000" - "25:25" - "587:587" links: - db - mailcatcher
One Solution collect form web for “How can I Enable Unaccent for postgres in Docker-Compose?”
See my previous answer on that topic How to set the locale inside a Docker container?
Adapt it with the correct locale for your need.