-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.proxy.yml
More file actions
39 lines (37 loc) · 900 Bytes
/
docker-compose.proxy.yml
File metadata and controls
39 lines (37 loc) · 900 Bytes
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
services:
typedb:
image: typedb/typedb:3.8.0
container_name: typedb_proxy_test
ports:
- "${TYPEDB_PORT:-1731}:1729"
healthcheck:
test: ["CMD-SHELL", "timeout 1 bash -c '</dev/tcp/localhost/1729' || exit 1"]
interval: 5s
timeout: 3s
retries: 10
start_period: 10s
networks:
- proxy_net
proxy:
build:
context: ./type-bridge-core
dockerfile: Dockerfile.server
container_name: type_bridge_proxy_test
depends_on:
typedb:
condition: service_healthy
ports:
- "${PROXY_PORT:-8081}:8080"
environment:
TYPEDB_ADDRESS: "typedb:1729"
healthcheck:
test: ["CMD-SHELL", "timeout 1 bash -c '</dev/tcp/localhost/8080' || exit 1"]
interval: 3s
timeout: 2s
retries: 10
start_period: 5s
networks:
- proxy_net
networks:
proxy_net:
driver: bridge