-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 1.24 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.7'
volumes:
kong_data: {}
networks:
kong-net:
external: false
services:
kong:
image: "${KONG_DOCKER_TAG:-kong:2.8}"
user: "${KONG_USER:-kong}"
environment:
KONG_DECLARATIVE_CONFIG: /opt/conf/kong.yml
KONG_ADMIN_ACCESS_LOG: /dev/stdout
KONG_ADMIN_ERROR_LOG: /dev/stderr
KONG_ADMIN_LISTEN: '0.0.0.0:8001'
KONG_DATABASE: 'off'
KONG_PROXY_ACCESS_LOG: /dev/stdout
KONG_PROXY_ERROR_LOG: /dev/stderr
KONG_PLUGINS: kong-event-pub
KONG_LOG_LEVEL: 'debug'
SASL_USER: "${SASL_USER}"
SASL_PASSWORD: "$SASL_PASSWORD}"
networks:
- kong-net
ports:
- "8000:8000/tcp"
- "127.0.0.1:8001:8001/tcp"
- "8443:8443/tcp"
- "127.0.0.1:8444:8444/tcp"
volumes:
- .:/opt/conf/
command: sh /opt/conf/build.sh
python-test:
image: python:3.8
depends_on:
- kong
environment:
SASL_USER: "${SASL_USER}"
SASL_PASSWORD: "${SASL_PASSWORD}"
BOOTSTRAP_SERVERS: "${BOOTSTRAP_SERVERS}"
TOPIC: "${TOPIC}"
networks:
- kong-net
volumes:
- ./test.py:/app/test.py
- ./requirements.txt:/app/requirements.txt
- ./run-pytest.sh:/app/run-pytest.sh
command: bash -c "./app/run-pytest.sh"