-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (39 loc) · 1.63 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
40 lines (39 loc) · 1.63 KB
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
version: '3'
services:
ascent-ui:
build: .
environment:
- API_HOST=http://ascent-bff:3001
- EXTERNAL_PROTOCOL=http
- EXTERNAL_HOSTNAME=localhost
- EXTERNAL_PORT=3000
- PROTOCOL=http
- HOSTNAME=localhost
- PORT=3000
- NODE_ENV=test
ports:
- "3000:3000"
depends_on:
- ascent-bff
# image: quay.io/cloudnativetoolkit/ascent-ui:0.0.77
ascent-bff:
image: quay.io/cloudnativetoolkit/ascent-bff:v1.0.1
environment:
- DATABASE_TEST={"connection":{"mongodb":{"composed":["mongodb://mongodb:27017/mongodb"],"authentication":{"username":"mongodb","password":"passw0rd"},"hosts":[{"hostname":"localhost","port":27017}],"database":"mongodb","query_options":{"authSource":"admin","tls":false}}}}
- DATABASE_DEV={"connection":{"mongodb":{"composed":["mongodb://mongodb:27017/mongodb"],"authentication":{"username":"mongodb","password":"passw0rd"},"hosts":[{"hostname":"localhost","port":27017}],"database":"mongodb","query_options":{"authSource":"admin","tls":false}}}}
- DATABASE={"connection":{"mongodb":{"composed":["mongodb://mongodb:27017/mongodb"],"authentication":{"username":"mongodb","password":"passw0rd"},"hosts":[{"hostname":"localhost","port":27017}],"database":"mongodb","query_options":{"authSource":"admin","tls":false}}}}
command:
- npm
- run
- serve:test
ports:
- "3001:3001"
depends_on:
- mongodb
mongodb:
image: docker.io/mongodb/mongodb-community-server:7.0.7-ubi9
ports:
- "25017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=mongodb
- MONGO_INITDB_ROOT_PASSWORD=passw0rd