# How build live env not use docker

**URL:** <https://community.temporal.io/t/how-build-live-env-not-use-docker/3432>\
**Category:** Community Support\
**Tags:** mysql\
**Created:** [November 19, 2021, 3:35pm UTC](https://community.temporal.io/t/how-build-live-env-not-use-docker/3432 "2021-11-19T15:35:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![brcueLee](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/brcuelee/32/1515_2.png) [@brcueLee](https://community.temporal.io/u/brcueLee)\
**Post date:** [November 19, 2021, 3:35pm UTC](https://community.temporal.io/t/how-build-live-env-not-use-docker/3432/1 "2021-11-19T15:35:19Z")

</div>

hello everyone!  
Because I need to add some features to temporal, I cannot use docker img to build a production environment. I downloaded the server code from [Releases · temporalio/temporal · GitHub](https://github.com/temporalio/temporal/releases). When I started the temporal server, I found that the database and schema were not automatically created. When I used temporal-sql-tool to build the database and schema, I found that there was no database. Configuration file.  
I would like to ask you how to deal with it here?  
tk

---

<div class="post-metadata">

**Author:** ![brcueLee](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/brcuelee/32/1515_2.png) [@brcueLee](https://community.temporal.io/u/brcueLee)\
**Post date:** [November 19, 2021, 3:38pm UTC](https://community.temporal.io/t/how-build-live-env-not-use-docker/3432/2 "2021-11-19T15:38:07Z")

</div>

I feel very confused when dealing with it here, why not automatically initialize the database and the schema used according to yaml when the server is initialized.

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [November 19, 2021, 10:49pm UTC](https://community.temporal.io/t/how-build-live-env-not-use-docker/3432/3 "2021-11-19T22:49:28Z")

</div>

You can use auto-setup docker image: [Docker Hub](https://hub.docker.com/r/temporalio/auto-setup)  
Following docker-compose files should work:

```auto
services:
  cassandra:
    image: cassandra:3.11.9
    logging:
      driver: none
    ports:
      - "9042:9042"

  temporal:
    image: temporaliotest/auto-setup
    ports:
      - "7233:7233"
      - "7234:7234"
      - "7235:7235"
      - "7239:7239"
      - "6933:6933"
      - "6934:6934"
      - "6935:6935"
      - "6939:6939"
    environment:
      - "CASSANDRA_SEEDS=cassandra"
      - "DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development.yaml"
    depends_on:
      - cassandra

```

or

```auto

version: "3.5"
services:
  cassandra:
    container_name: temporal-cassandra
    image: cassandra:3.11.9
    networks:
      - temporal-network
    ports:
      - 9042:9042
  temporal:
    container_name: temporal
    depends_on:
      - cassandra
    environment:
      - CASSANDRA_SEEDS=cassandra
      - DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development.yaml
    image: temporalio/auto-setup:1.13.1
    networks:
      - temporal-network
    ports:
      - 7233:7233
    volumes:
      - ./dynamicconfig:/etc/temporal/config/dynamicconfig
  temporal-admin-tools:
    container_name: temporal-admin-tools
    depends_on:
      - temporal
    environment:
      - TEMPORAL_CLI_ADDRESS=temporal:7233
    image: temporalio/admin-tools:1.13.1
    networks:
      - temporal-network
    stdin_open: true
    tty: true
  temporal-web:
    container_name: temporal-web
    depends_on:
      - temporal
    environment:
      - TEMPORAL_GRPC_ENDPOINT=temporal:7233
      - TEMPORAL_PERMIT_WRITE_API=true
    image: temporalio/web:1.13.0
    networks:
      - temporal-network
    ports:
      - 8088:8088
networks:
  temporal-network:
    driver: bridge
    name: temporal-network

```

This brings up temporal-web too that you can after start access at localhost:8088

You can specify image version too, for example: ` image: temporalio/auto-setup:1.13.1`

Then run

`docker compose -f myDocker.yaml up`

Temporal provides a number of docker compose files [here](https://github.com/temporalio/docker-compose).

---

<div class="post-metadata">

**Author:** ![brcueLee](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/brcuelee/32/1515_2.png) [@brcueLee](https://community.temporal.io/u/brcueLee)\
**Post date:** [November 20, 2021, 3:32pm UTC](https://community.temporal.io/t/how-build-live-env-not-use-docker/3432/4 "2021-11-20T15:32:00Z")

</div>

thanks tihomir for your help.I saw that the docker-pose deployment is a development environment, but I want to deploy a production environment. I use the docker mirror auto-setup, but when I start the mirror, it shows that mysql cannot be connected. Have you ever encountered this situation? Is it because I am missing any environment variables?

---

<div class="post-metadata">

**Author:** ![brcueLee](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/brcuelee/32/1515_2.png) [@brcueLee](https://community.temporal.io/u/brcueLee)\
**Post date:** [November 21, 2021, 7:47am UTC](https://community.temporal.io/t/how-build-live-env-not-use-docker/3432/5 "2021-11-21T07:47:14Z")

</div>

Thank you very much brother. I followed what you said to use docker-compose to start docker successfully

---

<div class="post-metadata">

**Author:** ![brcueLee](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/brcuelee/32/1515_2.png) [@brcueLee](https://community.temporal.io/u/brcueLee)\
**Post date:** [November 21, 2021, 7:50am UTC](https://community.temporal.io/t/how-build-live-env-not-use-docker/3432/6 "2021-11-21T07:50:03Z")

</div>

I would like to ask, I want to deploy multiple servers, but I want them to share a mysql. Where should the host address be configured

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [November 24, 2021, 3:01am UTC](https://community.temporal.io/t/how-build-live-env-not-use-docker/3432/7 "2021-11-24T03:01:15Z")

</div>

Configuring two independent clusters on top of a single db is not supported.  
They can however share one physical db server (host), each needing own keyspace/db.

See sample [here](https://github.com/temporalio/temporal/blob/master/config/development.yaml#L5)
