---
title: crwdns59558:0crwdne59558:0
image: crwdns59560:0crwdne59560:0
---

<Frame>
  <img src="/images/user-guide/objects/objects.png" alt="Header" />
</Frame>

<Warning>crwdns59562:0https://docs.twenty.com/l/aa/developers/local-setupcrwdne59562:0</Warning>

## crwdns59564:0crwdne59564:0

crwdns59566:0crwdne59566:0 crwdns59568:0crwdne59568:0

crwdns59570:0crwdne59570:0 crwdns59572:0crwdne59572:0

crwdns59574:0https://docs.twenty.com/l/aa/developers/self-hosting/setupcrwdne59574:0 crwdns59576:0crwdne59576:0

## crwdns59578:0crwdne59578:0

- crwdns59580:0crwdne59580:0 crwdns59582:0crwdne59582:0
- crwdns59584:0crwdne59584:0

## crwdns59586:0crwdne59586:0

crwdns59588:0crwdne59588:0

```bash
bash <(curl -sL https://raw.githubusercontent.com/twentyhq/twenty/main/packages/twenty-docker/scripts/install.sh)
```

crwdns59590:0crwdne59590:0

```bash
VERSION=vx.y.z BRANCH=branch-name bash <(curl -sL https://raw.githubusercontent.com/twentyhq/twenty/main/packages/twenty-docker/scripts/install.sh)
```

- crwdns59592:0crwdne59592:0
- crwdns59594:0crwdne59594:0

## crwdns59596:0crwdne59596:0

crwdns59598:0crwdne59598:0

### crwdns59600:0crwdne59600:0

1. crwdns59602:0crwdne59602:0

   crwdns59604:0crwdne59604:0

   ```bash
   curl -o .env https://raw.githubusercontent.com/twentyhq/twenty/refs/heads/main/packages/twenty-docker/.env.example
   ```

2. crwdns59606:0crwdne59606:0

   crwdns59608:0crwdne59608:0

   ```bash
   openssl rand -base64 32
   ```

   crwdns59610:0crwdne59610:0

3. crwdns59612:0crwdne59612:0

   crwdns59614:0crwdne59614:0

   ```ini
   APP_SECRET=first_random_string
   ```

4. crwdns59616:0crwdne59616:0

   crwdns59618:0crwdne59618:0

   ```ini
   PG_DATABASE_PASSWORD=my_strong_password
   ```

### crwdns59620:0crwdne59620:0

crwdns59622:0crwdne59622:0

```bash
curl -o docker-compose.yml https://raw.githubusercontent.com/twentyhq/twenty/refs/heads/main/packages/twenty-docker/docker-compose.yml
```

### crwdns59624:0crwdne59624:0

crwdns59626:0crwdne59626:0

```bash
docker compose up -d
```

### crwdns59628:0crwdne59628:0

crwdns59630:0http://localhost:3000crwdne59630:0

crwdns59632:0crwdne59632:0

```bash
curl http://localhost:3000
```

## crwdns59634:0crwdne59634:0

### crwdns59636:0crwdne59636:0

crwdns59638:0crwdne59638:0 crwdns59640:0crwdne59640:0

#### crwdns59642:0crwdne59642:0

- crwdns59644:0crwdne59644:0
  - crwdns59646:0crwdne59646:0
  - crwdns59648:0crwdne59648:0
- crwdns59650:0crwdne59650:0
- crwdns59652:0crwdne59652:0

### crwdns59654:0crwdne59654:0

crwdns59656:0crwdne59656:0 crwdns59658:0crwdne59658:0

crwdns59660:0crwdne59660:0

crwdns59662:0crwdne59662:0

#### crwdns59664:0crwdne59664:0

1. crwdns59666:0crwdne59666:0
   - crwdns59668:0crwdne59668:0

     crwdns59670:0crwdne59670:0

     ```ini
     SERVER_URL=http://your-domain-or-ip:3000
     ```

   - crwdns59672:0crwdne59672:0

     crwdns59674:0crwdne59674:0

     ```ini
     SERVER_URL=https://your-domain-or-ip
     ```

   - crwdns59676:0crwdne59676:0

     crwdns59678:0crwdne59678:0

     ```ini
     SERVER_URL=https://your-domain-or-ip:custom-port
     ```

2. crwdns59680:0crwdne59680:0

   crwdns59682:0crwdne59682:0

   ```ini
   SERVER_URL=http(s)://your-domain-or-ip:your-port
   ```

   crwdns59684:0crwdne59684:0

   - crwdns59686:0crwdne59686:0
     ```ini
     SERVER_URL=http://123.45.67.89:3000
     ```
   - crwdns59688:0crwdne59688:0
     ```ini
     SERVER_URL=https://mytwentyapp.com
     ```

3. crwdns59690:0crwdne59690:0

   crwdns59692:0crwdne59692:0

   ```bash
   docker compose down
   docker compose up -d
   ```

#### crwdns59694:0crwdne59694:0

- crwdns59696:0crwdne59696:0

  crwdns59698:0crwdne59698:0 crwdns59700:0crwdne59700:0

- crwdns59702:0crwdne59702:0

  crwdns59704:0crwdne59704:0

- crwdns59706:0crwdne59706:0

  crwdns59708:0crwdne59708:0

#### crwdns59710:0crwdne59710:0

- crwdns59712:0crwdne59712:0

  crwdns59714:0crwdne59714:0

- crwdns59716:0crwdne59716:0

  crwdns59718:0crwdne59718:0

## crwdns59720:0crwdne59720:0

crwdns59722:0https://docs.twenty.com/l/aa/developers/self-hosting/troubleshootingcrwdne59722:0

