-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
108 lines (100 loc) · 2.6 KB
/
docker-compose.yml
File metadata and controls
108 lines (100 loc) · 2.6 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
services:
db:
image: postgres:15-alpine
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
container_name: evrendev-db
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "P@s5w0rd.123"
POSTGRES_DB: "evrendev-sass"
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- evrendev-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d evrendev-sass"]
interval: 10s
timeout: 3s
retries: 10
start_period: 10s
redis:
container_name: evrendev-redis
image: redis:alpine
ports:
- "6379:6379"
networks:
- evrendev-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
backend-migrator:
container_name: evrendev-migrator
image: evrendev-migrator
build:
context: .
dockerfile: src/backend/Dockerfile.migrator
environment:
ASPNETCORE_ENVIRONMENT: "Docker"
Logging__LogLevel__Default: "Information"
Logging__LogLevel__Microsoft: "Information"
Logging__LogLevel__Microsoft.Hosting.Lifetime: "Information"
depends_on:
db:
condition: service_healthy
networks:
- evrendev-network
profiles:
- migrate
backend:
container_name: evrendev-backend
image: evrendev-backend
volumes:
- files_data:/app/Files
build:
context: .
dockerfile: src/backend/Dockerfile
target: runtime
ports:
- "5001:5001"
environment:
ASPNETCORE_ENVIRONMENT: "Docker"
DatabaseSettings__ConnectionString: "Host=db;Port=5432;Database=evrendev-sass;Username=postgres;Password=P@s5w0rd.123;"
DatabaseSettings__DbProvider: "PostgreSQL"
HangfireSettings__Storage__ConnectionString: "Host=db;Port=5432;Database=evrendev-sass;Username=postgres;Password=P@s5w0rd.123;"
CacheSettings__RedisURL: "redis:6379"
SignalRSettings__Backplane__StringConnection: "redis:6379"
restart: unless-stopped
networks:
- evrendev-network
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
frontend:
container_name: evrendev-frontend
image: evrendev-frontend
build:
context: ./src/frontend
target: production
environment:
VITE_API_URL: "https://api.evren.dev"
depends_on:
- backend
networks:
- evrendev-network
volumes:
postgres_data:
files_data: {}
networks:
evrendev-network:
name: evrendev-network
driver: bridge