# Having trouble configuring up a DRONE\_OPEN=false instance

**URL:** <https://drone.discourse.group/t/having-trouble-configuring-up-a-drone-open-false-instance/10730>\
**Category:** Drone Support\
**Created:** [October 17, 2017, 7:47pm UTC](https://drone.discourse.group/t/having-trouble-configuring-up-a-drone-open-false-instance/10730 "2017-10-17T19:47:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ceephax](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ceephax/32/3858_2.png) [@ceephax](https://drone.discourse.group/u/ceephax)\
**Post date:** [October 17, 2017, 7:47pm UTC](https://drone.discourse.group/t/having-trouble-configuring-up-a-drone-open-false-instance/10730/1 "2017-10-17T19:47:56Z")

</div>

Hi

I’ve just found this project and it is absolutely perfect for what i’m looking for.

I have setup an instance and have connected it to my github account, and have got builds triggering on git hooks.

The issue that i am facing is that the instance doesn’t seem to be closed, and anyone can register. I know this as i have managed to login with my personal github account. This is a bit weird as i’ve been reading the docs and it says that it should be closed by default, and that I add the admins through the yml config.

Here is the docker-compose.yml i’m using, am i missing something obvious?

```auto
version: '2'

services:
  drone-server:
    image: drone/drone:0.7
    ports:
      - 80:8000
    volumes:
      - /var/lib/drone:/var/lib/drone/
    restart: always
    environment:
      - DRONE_OPEN=false
      - DRONE_ADMIN=mrceephax
      - DRONE_HOST=${DRONE_HOST}
      - DRONE_GITHUB=true
      - DRONE_GITHUB_CLIENT=${DRONE_GITHUB_CLIENT}
      - DRONE_GITHUB_SECRET=${DRONE_GITHUB_SECRET}
      - DRONE_SECRET=${DRONE_SECRET}
  drone-agent:
    image: drone/drone:0.7
    command: agent
    restart: always
    depends_on:
      - drone-server
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - DRONE_SERVER=ws://drone-server:8000/ws/broker
      - DRONE_SECRET=${DRONE_SECRET}

```

Any pointers to what i’m doing wrong would be most appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![ozbillwang](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ozbillwang/32/3947_2.png) [@ozbillwang](https://drone.discourse.group/u/ozbillwang)\
**Post date:** [October 18, 2017, 1:00am UTC](https://drone.discourse.group/t/having-trouble-configuring-up-a-drone-open-false-instance/10730/2 "2017-10-18T01:00:26Z")

</div>

You missed environment `DRONE_ORGS` ([http://docs.drone.io/installation/](http://docs.drone.io/installation/))

```diff
services:
  drone-server:
    image: drone/drone:0.7
    environment:
      - DRONE_OPEN= false
+ - DRONE_ORGS=dolores,dogpatch
      - DRONE_ADMIN=johnsmith,janedoe
      - DRONE_GITHUB_CLIENT=${DRONE_GITHUB_CLIENT}
      - DRONE_GITHUB_SECRET=${DRONE_GITHUB_SECRET}
      - DRONE_SECRET=${DRONE_SECRET}

```

---

<div class="post-metadata">

**Author:** ![ceephax](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ceephax/32/3858_2.png) [@ceephax](https://drone.discourse.group/u/ceephax)\
**Post date:** [October 18, 2017, 8:30am UTC](https://drone.discourse.group/t/having-trouble-configuring-up-a-drone-open-false-instance/10730/3 "2017-10-18T08:30:21Z")

</div>

Thanks @ozbillwang, totally missed that. Does that mean a guthub organisation is required? Or can I just name what I like in there?

---

<div class="post-metadata">

**Author:** ![ozbillwang](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ozbillwang/32/3947_2.png) [@ozbillwang](https://drone.discourse.group/u/ozbillwang)\
**Post date:** [October 18, 2017, 10:20am UTC](https://drone.discourse.group/t/having-trouble-configuring-up-a-drone-open-false-instance/10730/4 "2017-10-18T10:20:03Z")

</div>

I currently use bitbucket cloud. I limit the users with bitbucket groups as well.

From my view, you need to define the Github organisation to limit the users, a real name in Github.
