-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (48 loc) · 1.15 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Please refer https://aka.ms/HTTPSinContainer on how to setup an https developer certificate for your ASP .NET Core service.
version: '3.4'
services:
frontend:
image: frontend
build:
context: frontend
dockerfile: Dockerfile
ports:
- 3000:3000
environment:
- CHOKIDAR_USEPOLLING=true
volumes:
- node-modules:/usr/src/app/node_modules
- ./frontend:/usr/src/app
depends_on:
- backend
backend:
image: backend
build:
context: backend
dockerfile: Dockerfile
ports:
- 5001:5001
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:5001
volumes:
- ~/.vsdbg:/remote_debugger:rw
- ~/.aspnet/https:/https:ro
depends_on:
db:
condition: service_healthy
db:
image: postgres:14
ports:
- 15432:5432
environment:
- POSTGRES_DB=webapp
- POSTGRES_USER=devuser
- POSTGRES_PASSWORD=devpass
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 5s
timeout: 3s
retries: 5
volumes:
node-modules: