-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (68 loc) · 2.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
72 lines (68 loc) · 2.06 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
services:
postgres:
image: postgres:18-alpine
container_name: rssvibe-docker-postgres
environment:
POSTGRES_DB: rssvibe
POSTGRES_USER: rssvibe
POSTGRES_PASSWORD: dev123
ports:
- "5433:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U rssvibe"]
interval: 10s
timeout: 5s
retries: 5
migration:
image: ghcr.io/jakoss/rssvibe-migrationservice:latest
container_name: rssvibe-docker-migration
environment:
ConnectionStrings__rssvibedb: "Host=postgres;Database=rssvibe;Username=rssvibe;Password=dev123"
depends_on:
postgres:
condition: service_healthy
restart: "no"
api:
image: ghcr.io/jakoss/rssvibe-apiservice:latest
container_name: rssvibe-docker-api
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ConnectionStrings__rssvibedb: "Host=postgres;Database=rssvibe;Username=rssvibe;Password=dev123"
Jwt__SecretKey: "your-super-secret-jwt-key-min-32-characters-long"
Jwt__Issuer: "RSSVibe"
Jwt__Audience: "RSSVibe"
Jwt__AccessTokenExpirationMinutes: "60"
Jwt__Cookie__RequireSecure: "false"
Jwt__Cookie__SameSite: "Lax"
Cors__AllowedOrigins__0: "http://localhost:81"
depends_on:
postgres:
condition: service_healthy
migration:
condition: service_completed_successfully
healthcheck:
test: ["CMD-SHELL", "timeout 5 bash -c '</dev/tcp/localhost/8080' || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 40s
client:
image: ghcr.io/jakoss/rssvibe-client:latest
container_name: rssvibe-docker-client
environment:
API_BASE_URL: http://localhost:81/api
ports:
- "81:80"
depends_on:
api:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres-data:
name: rssvibe-docker-postgres-data