-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
63 lines (59 loc) · 1.5 KB
/
docker-compose.yaml
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
54
55
56
57
58
59
60
61
62
63
services:
extauthz:
build:
context: ./extauthz
args:
- PACKAGE_NAME=extauthz
- SERVER_PORT=${EXT_AUTHZ_PORT}
- RELEASE_BUILD=${RELEASE_BUILD}
image: ${DOCKER_REGISTRY}/extauthz-rust.extauthz:latest
container_name: extauthz-rust.extauthz
environment:
- SERVER_PORT=${EXT_AUTHZ_PORT}
networks:
- extauthz_net
nginx:
build:
context: ./nginx
args:
- SERVER_PORT=${NGINX_SERVER_PORT}
image: ${DOCKER_REGISTRY}/extauthz-rust.nginx:latest
container_name: extauthz-rust.nginx
environment:
- SERVER_PORT=${NGINX_SERVER_PORT}
- SERVER_NAME=${NGINX_SERVER_NAME}
networks:
- nginx_net
envoy:
build:
context: ./envoy
args:
- SERVER_PORT=${ENVOY_SERVER_PORT}
- ADMIN_PORT=${ENVOY_ADMIN_PORT}
image: ${DOCKER_REGISTRY}/extauthz-rust.envoy:latest
container_name: extauthz-rust.envoy
ports:
- "${ENVOY_EXTERNAL_PORT}:${ENVOY_SERVER_PORT}"
environment:
- SERVER_PORT=${ENVOY_SERVER_PORT}
- ADMIN_PORT=${ENVOY_ADMIN_PORT}
- NGINX_SERVER_PORT=${NGINX_SERVER_PORT}
- NGINX_SERVER_ADDRESS=nginx
- EXT_AUTHZ_SERVER_PORT=${EXT_AUTHZ_PORT}
- EXT_AUTHZ_SERVER_ADDRESS=extauthz
depends_on:
- extauthz
- nginx
networks:
- extauthz_net
- nginx_net
- internet
networks:
extauthz_net:
driver: bridge
internal: true
nginx_net:
driver: bridge
internal: true
internet:
driver: bridge