-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
71 lines (64 loc) · 1.43 KB
/
docker-compose.yaml
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
59
60
61
62
63
64
65
66
67
68
69
version: "3.9"
services:
fe:
image: react-fe:0.0.1
ports:
- 9090:80
build:
context: .
dockerfile: client/compose.Dockerfile
args:
REACT_APP_GRPC_BACKEND: "http://localhost:9099" # envoy needs to be available from browser
depends_on:
- fe-base
- envoy
be:
image: spring-be:0.0.1
build:
context: .
dockerfile: server/compose.Dockerfile
environment:
- "POSTGRES_HOST=db"
- "POSTGRES_PORT=5432"
- "POSTGRES_DB=postgres"
- "POSTGRES_USER=postgres"
- "POSTGRES_PASSWORD=postgress"
depends_on:
- be-base
- db
envoy:
image: envoyproxy/envoy:v1.24-latest
ports:
- 9099:8080
volumes:
- ./config/envoy/envoy.yaml:/etc/envoy/envoy.yaml
- ./config/local_tls:/etc/local_tls
entrypoint: /usr/local/bin/envoy -c /etc/envoy/envoy.yaml
depends_on:
- be
db:
image: postgres:15.1
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgress
- POSTGRES_DB=postgres
volumes:
- pgdata:/var/lib/postgresql/data
fe-base:
image: react-fe-base:0.0.1
build:
context: .
dockerfile: client/base.Dockerfile
deploy:
mode: replicated
replicas: 0
be-base:
image: spring-be-base:0.0.1
build:
context: .
dockerfile: server/base.Dockerfile
deploy:
mode: replicated
replicas: 0
volumes:
pgdata: