-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.yml
36 lines (36 loc) · 1006 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
version: "3.8"
services:
frontend:
build:
dockerfile: src/UpBlazor.WebUI/Dockerfile
context: .
image: upblazor-frontend
container_name: UpBlazorFrontend
restart: unless-stopped
ports:
- 9994:80
depends_on:
- api
api:
build:
dockerfile: src/UpBlazor.WebApi/Dockerfile
context: .
image: upblazor-api
container_name: UpBlazorApi
restart: unless-stopped
volumes:
- ./config/appsettings.json:/app/appsettings.json
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ConnectionStrings__Marten=User ID = okr;Password=o32342134k4r%Y#%Y345yRasdf;Server=postgres;Port=5432;Database=okr_db;Integrated Security=true;Pooling=true
depends_on:
- postgres
postgres:
image: postgres:latest
container_name: UpBlazorPostgres
environment:
- POSTGRES_USER=okr
- POSTGRES_PASSWORD=o32342134k4r%Y#%Y345yRasdf
- POSTGRES_DB=okr_db
volumes:
- ./data:/var/lib/postgresql/data