Skip to content
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

Sync Gateway does not start with docker-compose #187

Open
Medformatik opened this issue Aug 18, 2022 · 0 comments
Open

Sync Gateway does not start with docker-compose #187

Medformatik opened this issue Aug 18, 2022 · 0 comments

Comments

@Medformatik
Copy link

I have created this docker-compose.yml file:

version: '3.5'
            
networks:
    couchbase:

services:
    server:
        container_name: couchbase-server
        ports:
            - '8091-8096:8091-8096'
            - '11207-11211:11207-11211'
            - '18091-18093:18091-18093'
        networks:
            - couchbase
        image: couchbase
        volumes:
            - /root/docker/couchbase/server/data:/opt/couchbase/var
        ulimits:
            nofile:
                soft: 200000
                hard: 200000
            core:
                soft: 100000000
                hard: 100000000
            memlock:
                soft: 100000000
                hard: 100000000
    sync-gateway:
        networks:
            - couchbase
        ports:
            - '4984:4984'
        container_name: couchbase-sync-gateway
        volumes:
            - /root/docker/couchbase/sync-gateway/config:/tmp/config
            - /root/docker/couchbase/sync-gateway/data:/opt/couchbase-sync-gateway
        image: couchbase/sync-gateway
        command: '/tmp/config/sync-gateway-config.json'
        depends_on:
            - server

and this is my sync-gateway-config.json file:

{
    "bootstrap": {
        "server": "couchbases://couchbase-server:8091",
        "server_tls_skip_verify": true,
        "username": "...",
        "password": "..."
    },
    "logging": {
        "console": {
            "enabled": true,
            "log_level": "info",
            "log_keys": [
                "*"
            ]
        }
    }
}

When I run docker-compose up -d, the Server starts without any issues and I can set it up using the web interface, but the Sync Gateway is stopped with this error message:

/entrypoint.sh: line 7: exec: sync_gateway: not found

What could cause this issue and how can I resolve it?

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

No branches or pull requests

1 participant