-
Notifications
You must be signed in to change notification settings - Fork 31
/
docker-compose.yml
45 lines (41 loc) · 1.01 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
version: "3.9"
services:
backend:
build: .
depends_on:
- db
ports:
- 8080:8080
container_name: try-cb-api
frontend:
build: "https://github.com/couchbaselabs/try-cb-frontend-v2.git#7.0"
ports:
- 8081:8081
container_name: try-cb-fe
entrypoint: ["wait-for-it", "backend:8080", "--timeout=400", "--strict", "--", "npm", "run", "serve"]
depends_on:
- backend
db:
image: couchbase/server-sandbox:7.0.0
ports:
- "8091-8095:8091-8095"
- "9102:9102"
- "11210:11210"
expose:
- "8091"
- "8092"
- "8093"
- "8094"
- "8095"
- "9102"
- "11210"
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