title: How to run schema scripts after running couchbase via docker compose?
body: <p>I have a schema script <code>/data/cb-create.sh</code> that I have made available on a container volume. When I run <code>docker-compose up</code>, my server is not initialized at the time <code>command</code> is executed. So those commands fail because the server isn't launched just yet. I do not see a <code>Starting Couchbase Server -- Web UI available at http://&lt;ip&gt;:8091</code> log line when the .sh script is running to initialize the schema. This is my docker compose file. How can I sequence it properly?</p>
  <pre><code>version: '3'
  
  services:
   couchbase:
      image: couchbase:community-6.0.0
      deploy:
        replicas: 1
      ports:
        - 8091:8091
        - 8092:8092
        - 8093:8093
        - 8094:8094
        - 11210:11210
      volumes:
        - ./:/data
  
      command: /bin/bash -c &quot;/data/cb-create.sh&quot;
      container_name: couchbase
   
  
  volumes:
   kafka-data:
  
  </code></pre>