# OpenFlow Docker environment

**URL:** <https://discourse.openiap.io/t/openflow-docker-environment/1051>\
**Category:** OpenCore\
**Tags:** openai\
**Created:** [December 21, 2023, 2:19pm UTC](https://discourse.openiap.io/t/openflow-docker-environment/1051 "2023-12-21T14:19:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roman\_Chernov](https://discourse.openiap.io/user_avatar/discourse.openiap.io/roman_chernov/32/605_2.png) [@Roman\_Chernov](https://discourse.openiap.io/u/Roman_Chernov)\
**Post date:** [December 21, 2023, 2:19pm UTC](https://discourse.openiap.io/t/openflow-docker-environment/1051/1 "2023-12-21T14:19:00Z")

</div>

Hello everybody! I would be very grateful if you could tell me about the purpose of the environment parameters in docker-compose.yml for the “api” of the service:

```auto
- auto_create_users=true
- auto_create_domains=
- websocket_package_size=25000
- websocket_max_package_count=1048576
- protocol=http
- port=3000
- domain=openflow.myhost.com
- log_with_colors=false

# uncomment below 2 lines, if you have set replicas above 1
# - enable_openflow_amqp=true
# - amqp_prefetch=25
# uncomment to add agents to the same docker compose project ( will breake running docker compose up -d if any agents running )
# - agent_docker_use_project=true

 - agent_oidc_userinfo_endpoint=http://api:3000/oidc/me
 - agent_oidc_issuer=http://openflow.myhost.com/oidc
 - agent_oidc_authorization_endpoint=http://openflow.myhost.com/oidc/auth
 - agent_oidc_token_endpoint=http://api:3000/oidc/token

 - amqp_url=amqp://guest:guest@rabbitmq
 - mongodb_url=mongodb://mongodb:27017/?replicaSet=rs0
 - mongodb_db=openflow

 - aes_secret=O1itlrmA47WzxPj95YHD2sZs7IchYaQI25m

```

I performed a local deployment of OpenFlow v1.5.6 by modifying the original docker-compose.yml from GitHub. Everything works just fine, but for myself I would like to understand what these variables control.

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![Roman\_Chernov](https://discourse.openiap.io/user_avatar/discourse.openiap.io/roman_chernov/32/605_2.png) [@Roman\_Chernov](https://discourse.openiap.io/u/Roman_Chernov)\
**Post date:** [December 21, 2023, 2:24pm UTC](https://discourse.openiap.io/t/openflow-docker-environment/1051/2 "2023-12-21T14:24:42Z")

</div>

As I understand it, “- aes\_secret=” is the key for encrypting data in mongodb. How can I set my value? Which utility should I use?

---

<div class="post-metadata">

**Author:** ![Roman\_Chernov](https://discourse.openiap.io/user_avatar/discourse.openiap.io/roman_chernov/32/605_2.png) [@Roman\_Chernov](https://discourse.openiap.io/u/Roman_Chernov)\
**Post date:** [December 21, 2023, 2:30pm UTC](https://discourse.openiap.io/t/openflow-docker-environment/1051/3 "2023-12-21T14:30:18Z")

</div>

I also wanted to ask how to change the guest user in the variable “-amqp\_url=” to another password-protected one? As far as I can tell, this variable is used to access agents and OpenRPA to the broker.

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [December 21, 2023, 2:49pm UTC](https://discourse.openiap.io/t/openflow-docker-environment/1051/4 "2023-12-21T14:49:54Z")

</div>

- aes secret can be any 36 charecter long string  
You cannot change it once used  
This is used to hash passwords and is used for aes encrypting credentials. ( or any other documemt using the \_encrypt array )

- Rabbitmq removed the option to set username/password using env so is using guest by default.  
Rabbitmq should not be exposed, openflow handles connecting to rabbitmq on behalf of the clients, this is how access control is enforced for consuming and publishing.

- Most settings are explained here  
[Configuration Values | OpenIAP Documentation](https://docs.openiap.io/docs/flow/ConfigurationValues.html)

---

<div class="post-metadata">

**Author:** ![Roman\_Chernov](https://discourse.openiap.io/user_avatar/discourse.openiap.io/roman_chernov/32/605_2.png) [@Roman\_Chernov](https://discourse.openiap.io/u/Roman_Chernov)\
**Post date:** [December 22, 2023, 4:24pm UTC](https://discourse.openiap.io/t/openflow-docker-environment/1051/5 "2023-12-22T16:24:34Z")

</div>

Thank you, Allan. It helps.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openiap.io/uploads/default/original/2X/a/a1ca7b164ac9a826839704d9ac82c7b5e6bcf557.png) [@system](https://discourse.openiap.io/u/system)\
**Post date:** [December 25, 2023, 4:24pm UTC](https://discourse.openiap.io/t/openflow-docker-environment/1051/6 "2023-12-25T16:24:51Z")

</div>

Closed on December 25, 2023, 4:24pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
