简体   繁体   English

如何在Docker-Compose中为Postgres启用Unaccent?

[英]How can I Enable Unaccent for postgres in Docker-Compose?

I need to enable the accents for postgreSQL. 我需要为PostgreSQL启用重音符号。 This is my docker-compose.yml , but it doesn't work. 这是我docker-compose.yml ,但是不起作用。 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

See my previous answer on that topic How to set the locale inside a Docker container? 请参阅我之前关于该主题的答案, 如何在Docker容器中设置语言环境?

Adapt it with the correct locale for your need. 根据您的需要使用正确的语言环境对其进行调整。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM