-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
61 lines (57 loc) · 1.74 KB
/
docker-compose.dev.yml
File metadata and controls
61 lines (57 loc) · 1.74 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
59
60
61
# Development docker-compose with Mailpit for email testing
# Usage: docker compose -f docker-compose.dev.yml up --build
services:
web:
build:
context: .
dockerfile: Dockerfile
image: bykeny/habit-goal-tracker:dev
container_name: habitgoal-web
ports:
- "5032:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- DATABASE_URL=Server=db;Database=HabitGoalTracker;User Id=sa;Password=${MSSQL_SA_PASSWORD};TrustServerCertificate=True;
# Mailpit SMTP settings (no auth required)
- EmailSettings__SmtpHost=mailpit
- EmailSettings__SmtpPort=1025
- EmailSettings__SmtpUsername=
- EmailSettings__SmtpPassword=
- EmailSettings__FromEmail=noreply@streakly.local
- EmailSettings__FromName=Streakly
- EmailSettings__UseSsl=false
volumes:
- profile_images:/app/wwwroot/images/profiles
depends_on:
db:
condition: service_healthy
mailpit:
condition: service_started
db:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: habitgoal-sql
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=${MSSQL_SA_PASSWORD}
ports:
- "1433:1433"
volumes:
- sqlserver_data:/var/opt/mssql
healthcheck:
test: /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P "${MSSQL_SA_PASSWORD}" -C -Q "SELECT 1" || exit 1
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
mailpit:
image: axllent/mailpit
container_name: habitgoal-mailpit
ports:
- "8025:8025" # Web UI to view emails
- "1025:1025" # SMTP server
environment:
- MP_SMTP_AUTH_ACCEPT_ANY=true
- MP_SMTP_AUTH_ALLOW_INSECURE=true
volumes:
sqlserver_data:
profile_images: