-
Notifications
You must be signed in to change notification settings - Fork 33
/
docker-compose.yml
58 lines (54 loc) · 1.33 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
54
55
56
57
58
version: "3.9"
services:
backend:
build: .
depends_on:
db:
condition: service_healthy
ports:
- 8080:8080
environment:
- CB_HOST
- CB_USER
- CB_PSWD
volumes:
- .:/app
container_name: try-cb-api
frontend:
build: "https://github.com/couchbaselabs/try-cb-frontend-v2.git#7.0"
depends_on:
backend:
condition: service_started
ports:
- 8081:8081
container_name: try-cb-fe
entrypoint: ["wait-for-it", "backend:8080", "--timeout=0", "--", "npm", "run", "serve"]
db:
image: couchbase/server-sandbox:7.0.0
ports:
- "8091-8095:8091-8095"
- "11210:11210"
- "9102:9102"
expose:
- "8091"
- "8092"
- "8093"
- "8094"
- "8095"
- "9102"
- "11210"
healthcheck: # checks couchbase server is up
test: ["CMD", "curl", "-v", "http://localhost:8091/pools"]
interval: 20s
timeout: 20s
retries: 2
container_name: couchbase-sandbox-7.0.0
test:
build: "https://github.com/couchbaselabs/try-cb-test.git#main"
depends_on:
- backend
environment:
BACKEND_BASE_URL: http://backend:8080
entrypoint: ["wait-for-it", "backend:8080", "--timeout=400", "--strict", "--", "bats", "travel-sample-backend.bats"]
profiles:
- test