-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (39 loc) · 1002 Bytes
/
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
# Please refer https://aka.ms/HTTPSinContainer on how to setup an https developer certificate for your ASP.NET Core service.
version: '3.4'
services:
backend:
container_name: 'aspnetcoreapp'
image: backend
build:
context: ./backend
dockerfile: Dockerfile
environment:
- ConnectionStrings__DefaultConnection=User ID=${User_ID};Password=${PASSWORD};Server=db;Port=5432;Database=productdb; Integrated Security=true;Pooling=true;
ports:
- '5035:5000'
depends_on:
- db
volumes:
- ./backend:/app
frontend:
container_name: 'reactapp'
image: frontend
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- 3000:3000
depends_on:
- backend
volumes:
- ./frontend:/frontend
db:
container_name: 'db'
image: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: productdb
ports:
- 5432:5432