-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
53 lines (50 loc) · 1.19 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
version: '3.4'
services:
postgres:
container_name: postgres
image: postgres:latest
environment:
POSTGRES_DB: "tasks"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
timeout: 20s
retries: 10
frontend:
container_name: react-client
image: reactfrontend
build:
context: front-end
dockerfile: ./Dockerfile
volumes:
- ./front-end:/front-end:delegated
- ./front-end/node_modules:/front-end/node_modules
environment:
NODE_ENV: development
- CHOKIDAR_USEPOLLING=true
ports:
- 3000:3000
depends_on:
- backend
restart: always
backend:
container_name: aspnet-webapi
depends_on:
- postgres
image: aspnet-webapi
build:
context: .
dockerfile: Back-end/FastSlnPresentation.Server/Dockerfile
args:
- configuration=Debug
ports:
- 5137:5137
environment:
- ASPNETCORE_ENVIRONMENT=Docker
volumes:
- ~/.vsdbg:/remote_debugger:rw
- ./keys/signing_key.pfx:/app/signing_key.pfx
restart: always