forked from kpattaswamy/mern-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (36 loc) · 992 Bytes
/
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
version: "3.0"
services:
front:
build:
context: ./src/front/
dockerfile: ../../dockerfiles/Dockerfile.front
ports:
- 8080:8080
depends_on:
- back
image: gcr.io/pixie-prod/demos/px-mongo/frontend:1.0.0
back:
build:
context: ./src/back
dockerfile: ../../dockerfiles/Dockerfile.back
ports:
- 8085:8085
depends_on:
- mongodb
environment:
- PORT=8085
- CONN_STR=mongodb://mongodb:27017
image: gcr.io/pixie-prod/demos/px-mongo/backend:1.0.0
load:
build:
context: ./src/load-test
dockerfile: ../../dockerfiles/Dockerfile.load
depends_on:
- back
image: gcr.io/pixie-prod/demos/px-mongo/load:1.0.0
mongodb:
image: mongo:7.0
container_name: mongodb
restart: always
ports:
- 27017:27017