-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (53 loc) · 1.57 KB
/
docker-compose.yml
File metadata and controls
58 lines (53 loc) · 1.57 KB
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
55
56
57
58
version: '3.9'
services:
frontend:
build:
context: ./secure-note-frontend
dockerfile: Dockerfile
ports:
- "3000:3000" # Assuming your frontend runs on port 3000
depends_on:
- api
environment:
- API_URL=http://api:8080 # Update this URL to match the backend service
networks:
- secure_note_network
api:
build:
context: ./SecureNote # Specify the API folder location
dockerfile: API/Dockerfile # Specify the Dockerfile location within the API folder
ports:
- "8080:8080"
- "8081:8081"
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ConnectionStrings__DefaultConnection=Host=postgres;Port=5432;Username=postgres;Password=root;Database=SecureNotes # PostgreSQL connection string
- Jwt__Key=wOyy&%H&WiJRpmIfjVMwxh75&7iiCbcjYFXt7vxln8z!MelF
- Jwt__Issuer=https://securenote.com
- Jwt__Audience=securenote.com
- Jwt__ExpirationMinutes=1440
- Mfa__MfaChallengeKey=@A32szN4K5j$rl89C6h938ht4eQohiGtNVKVVRBZ@ezI8oDje9
- FrontendUrl=http://frontend:3000
depends_on:
- postgres
networks:
- secure_note_network
command: ["dotnet", "API.dll", "--db-init", "--swagger"]
postgres:
image: postgres:17
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=root
- POSTGRES_DB=SecureNotes
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- secure_note_network
networks:
secure_note_network:
driver: bridge
volumes:
postgres_data:
driver: local