-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev-all.yml
More file actions
73 lines (68 loc) · 1.89 KB
/
Copy pathdocker-compose-dev-all.yml
File metadata and controls
73 lines (68 loc) · 1.89 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
62
63
64
65
66
67
68
69
70
71
72
73
version: '3.8'
services:
restaurantsystem-api:
build:
context: .
dockerfile: RestaurantSystem.Api/Dockerfile
container_name: restaurant-api-dev
ports:
- "5221:8080"
- "7001:8081"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__DefaultConnection=Host=postgres;Port=5432;Database=restaurantdb;Username=postgres;Password=postgres123
- ConnectionStrings__Redis=redis:6379
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
networks:
- restaurant-network-dev
postgres:
image: postgres:16
container_name: restaurant-postgres-dev
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres123
- POSTGRES_DB=restaurantdb
volumes:
- postgres-data-dev:/var/lib/postgresql/data
networks:
- restaurant-network-dev
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: restaurant-redis-dev
ports:
- "6379:6379"
networks:
- restaurant-network-dev
volumes:
- redis-data-dev:/data
command: redis-server --appendonly yes
# SMTP catcher for local dev + E2E. Test code reads sent emails via the
# HTTP API at :8025; the backend points at :1025 when EmailSettings__SmtpHost
# is overridden. Used by the Playwright auth tests for the verify-email-link
# flow (see frontend/e2e/helpers/mailpit.ts).
mailpit:
image: axllent/mailpit:v1.29.7
container_name: restaurant-mailpit-dev
ports:
- "1025:1025" # SMTP
- "8025:8025" # HTTP API + UI
networks:
- restaurant-network-dev
restart: unless-stopped
networks:
restaurant-network-dev:
driver: bridge
volumes:
postgres-data-dev:
redis-data-dev: