mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 15:02:07 -03:30
Revive the logstash container for testing (#15654)
* Revive the logstash container for testing * yamllint
This commit is contained in:
parent
51896f0e1b
commit
ce7911e578
@ -170,12 +170,6 @@ services:
|
||||
depends_on:
|
||||
- prometheus
|
||||
{% endif %}
|
||||
# A useful container that simply passes through log messages to the console
|
||||
# helpful for testing awx/tower logging
|
||||
# logstash:
|
||||
# build:
|
||||
# context: ../../docker-compose
|
||||
# dockerfile: Dockerfile-logstash
|
||||
postgres:
|
||||
image: quay.io/sclorg/postgresql-15-c9s
|
||||
container_name: tools_postgres_1
|
||||
|
||||
@ -2,16 +2,10 @@
|
||||
|
||||
#### Modify the docker-compose.yml
|
||||
|
||||
Uncomment the following lines in the `docker-compose.yml`
|
||||
You can run the logstash container by adding another compose file to the docker-compose target.
|
||||
|
||||
```
|
||||
#- logstash
|
||||
...
|
||||
|
||||
#logstash:
|
||||
# build:
|
||||
# context: ./docker-compose
|
||||
# dockerfile: Dockerfile-logstash
|
||||
COMPOSE_OPTS="-f tools/docker-compose/logstash-override.yaml" COMPOSE_TAG=devel make docker-compose
|
||||
```
|
||||
|
||||
POST the following content to `/api/v2/settings/logging/` (this uses
|
||||
|
||||
12
tools/docker-compose/logstash-override.yaml
Normal file
12
tools/docker-compose/logstash-override.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
services:
|
||||
# A useful container that simply passes through log messages to the console
|
||||
# helpful for testing awx/tower logging
|
||||
logstash:
|
||||
build:
|
||||
context: ../
|
||||
dockerfile: Dockerfile-logstash
|
||||
container_name: tools_logstash_1
|
||||
hostname: logstash
|
||||
networks:
|
||||
- awx
|
||||
Loading…
x
Reference in New Issue
Block a user