-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
41 lines (38 loc) · 940 Bytes
/
compose.yaml
File metadata and controls
41 lines (38 loc) · 940 Bytes
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
name: CubeTrainer
services:
frontend:
build:
context: ./CubeTrainer.Frontend/
args:
- API_BASE_URL=http://localhost:5000
ports:
- 3000:80
api:
build:
context: .
dockerfile: ./CubeTrainer.API/Dockerfile
environment:
- ConnectionStrings__DefaultConnection=Host=postgres;Port=5432;Database=cubetrainer;Username=postgres;Password=postgres
- Cors__AllowedOrigins__0=http://localhost:3000
- MigrateAndSeed=true
ports:
- 5000:8080
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:17.2
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 10s
retries: 5
volumes:
postgres-data: