-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (63 loc) · 1.8 KB
/
Copy pathdocker-compose.yml
File metadata and controls
67 lines (63 loc) · 1.8 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
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: chateando
POSTGRES_USER: chateando
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U chateando -d chateando"]
interval: 5s
timeout: 5s
retries: 10
backend:
build: ./backend
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_HTTP_PORTS: "8080"
ConnectionStrings__DefaultConnection: "Host=postgres;Port=5432;Database=chateando;Username=chateando;Password=${POSTGRES_PASSWORD}"
Jwt__SigningKey: ${JWT_SIGNING_KEY}
Jwt__ExpirationMinutes: ${JWT_EXPIRATION_MINUTES:-20160}
Integrations__ApiKey: ${INTEGRATION_API_KEY}
Cors__Origins: "http://localhost:4200,http://localhost:4201"
WebPush__Subject: "mailto:dev@localhost"
WebPush__PublicKey: ${WebPush__PublicKey:-}
WebPush__PrivateKey: ${WebPush__PrivateKey:-}
DesktopUpdates__Path: /app/desktop-updates
volumes:
- chat_files:/app/chat-files
- desktop_updates_backend:/app/desktop-updates
ports:
- "5095:8080"
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail http://localhost:8080/health/ready || exit 1"]
interval: 10s
timeout: 5s
retries: 6
start_period: 30s
frontend:
container_name: chateando-frontend
build: ./frontend
ports:
- "4200:80"
depends_on:
backend:
condition: service_healthy
admin:
build: ./admin
ports:
- "4201:80"
depends_on:
backend:
condition: service_healthy
volumes:
postgres_data:
chat_files:
desktop_updates_backend: