Skip to content

Commit

Permalink
allow to change env variables in docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
mammo0 committed Mar 2, 2024
1 parent deab463 commit 8213165
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,15 @@ These parameters are available:
You can use `docker-compose` if you want to setup OpenSearch together with Arkime in one step.

#### Configuration
1. Please copy or rename the file `docker-compose.env` to `.env` **before** running `docker-compose up`. You may want to change some of the variables inside. Each variable is documented there.
1. Copy the file `env/docker-compose.env` to `.env` **before** running `docker-compose up`:
```shell
cp env/docker-compose.env .env
```
You may want to change some of the variables inside. Each variable is documented there.

2. Check the settings in `env/arkime-compose.env` file. These are used for the Arkime container. The available settings and values are documented in the `ENV VARIABLE` table above.

2. Please ensure you have done this step (otherwise OpenSearch won't start): https://opensearch.org/docs/latest/opensearch/install/docker/#important-host-settings
3. Ensure you have done this step (otherwise OpenSearch won't start): https://opensearch.org/docs/latest/opensearch/install/docker/#important-host-settings
To apply the setting on a live system, run:
```shell
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ services:
- $OS_NODE1
# uncomment and add all OS node container names
# - $OS_NODE2
env_file:
- path: ./env/arkime-compose.env
# defaults to values defined in Dockerfile
required: false
environment:
- OS_HOST=$OS_NODE1
- OS_PORT=9200
Expand Down
10 changes: 10 additions & 0 deletions env/arkime-compose.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# environment file for the arkime container that is started via 'docker compose'
# see README.md file for documentation


ARKIME_INTERFACE="eth0"
ARKIME_ADMIN_PASSWORD="admin"
ARKIME_HOSTNAME="localhost"

CAPTURE="off"
VIEWER="on"
File renamed without changes.

0 comments on commit 8213165

Please sign in to comment.