-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
63 lines (55 loc) · 1.28 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
version: "3.1"
services:
dsg-example-back:
build:
context: ./backend
command: /opt/code/manage.py runserver 0.0.0.0:80
# command: django-admin startproject dsg_example .
# command: python manage.py startapp async_example_bib_app
volumes:
- ./backend:/opt/code
ports:
- "9080:80"
env_file:
- ./backend/.env
networks:
dsg-example-network:
dsg-example-grpc:
build:
context: ./backend
command: /opt/code/manage.py grpcrunaioserver --dev
volumes:
- ./backend:/opt/code
ports:
- "50051:50051"
env_file:
- ./backend/.env
networks:
dsg-example-network:
envoy:
build:
context: ./envoy
volumes:
- ./envoy:/etc/envoy
ports:
- "9001:9001"
links:
- dsg-example-grpc
networks:
dsg-example-network:
# ---------------------------- Front -------------------------------------------
dsg-example-front:
image: dsg-example-front
container_name: dsg-example-front
ports:
- "5173:5173"
build:
context: ./frontend/grpc-web-example
volumes:
- ./frontend/grpc-web-example:/opt/code
- /opt/code/node_modules
command: dev -- --host
networks:
dsg-example-network:
networks:
dsg-example-network: