GitHub user mashupmark added a comment to the discussion: simplify running 
couchdb-docker in single-node mode

For anyone interested, I just managed to archive a "one file docker compose 
setup" by leveraging [Docker compose 
configs](https://docs.docker.com/reference/compose-file/configs/#example-3):

```Docker
services:
  db:
    image: couchdb:3.5.1
    ports:
      - 5984:5984
    configs:
      - source: db_config
        target: /opt/couchdb/etc/local.ini

configs:
  db_config:
    content: |
      [couchdb]
      single_node = true

      [admins]
      admin = ${ADMIN_PASSWORD}
```

This will create the config file as part of the docker-compose file and add it 
to the container. I still think having single_node enabled by default unless 
disabled via config for more advanced setups would be beneficial, but for 
simple projects or local dev setups I find this workaround to be nice and easy.

GitHub link: 
https://github.com/apache/couchdb/discussions/2948#discussioncomment-16307994

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]

Reply via email to