-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
142 lines (134 loc) · 3.22 KB
/
Copy pathcompose.dev.yaml
File metadata and controls
142 lines (134 loc) · 3.22 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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# DOCKER DEV FILE
# docker compose -f compose.dev.yaml -p matli-dev watch
# docker compose -f compose.dev.yaml -p matli-dev build --no-cache
networks:
matli_network:
name: matli_network
services:
calc-server:
build:
context: ./calc-server
dockerfile: ./docker/Dockerfile.dev
ports:
- 4000:4000
env_file:
- ./secrets/calc-db/.db.env
develop:
watch:
- action: sync
path: ./calc-server/src
target: /usr/calc-server/src
ignore:
- node_modules/
- dist/
- action: rebuild
path: ./calc-server/package.json
- action: rebuild
path: ./calc-server/tsconfig.json
- action: rebuild
path: ./calc-server/nest-cli.json
- action: rebuild
path: ./calc-server/docker
depends_on:
- db
order-server:
build:
context: ./order-server
dockerfile: ./docker/Dockerfile.dev
ports:
- 4100:4100
env_file:
- ./secrets/order-db/.db.env
volumes:
- ./order-server/prisma/migrations:/usr/order-server/prisma/migrations
- ./order-server/static:/usr/order-server/static
develop:
watch:
- action: sync
path: ./order-server/src
target: /usr/order-server/src
ignore:
- node_modules/
- dist/
- action: rebuild
path: ./order-server/package.json
- action: rebuild
path: ./order-server/tsconfig.json
- action: rebuild
path: ./order-server/nest-cli.json
- action: rebuild
path: ./order-server/docker
- action: rebuild
path: ./order-server/prisma/schema.prisma
depends_on:
- db
user-server:
build:
context: ./user-server
dockerfile: ./docker/Dockerfile.dev
ports:
- 4200:4200
env_file:
- ./secrets/user-db/.db.env
develop:
watch:
- action: sync
path: ./user-server/src
target: /usr/user-server/src
ignore:
- node_modules/
- dist/
- action: rebuild
path: ./user-server/package.json
- action: rebuild
path: ./user-server/tsconfig.json
- action: rebuild
path: ./user-server/nest-cli.json
- action: rebuild
path: ./user-server/docker
- action: rebuild
path: ./user-server/prisma/schema.prisma
depends_on:
- db
ionic-client:
build:
context: ./ionic-client
dockerfile: ./docker/Dockerfile.dev
ports:
- 5173:5173
develop:
watch:
- action: sync
path: ./ionic-client
target: /usr/app
ignore:
- node_modules/
depends_on:
- db
nginx:
build:
context: ./nginx
dockerfile: ./Dockerfile.dev
ports:
- "80:80"
depends_on:
- ionic-client
- calc-server
- order-server
- user-server
- db
db:
image: postgres
restart: always
user: postgres
environment:
- POSTGRES_USER=test
- POSTGRES_PASSWORD=test
- POSTGRES_DB=calc
adminer:
image: adminer
restart: always
ports:
- 8080:8080
depends_on:
- db