Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (60 loc) · 1.56 KB
/
Copy pathdocker-compose.yml
File metadata and controls
65 lines (60 loc) · 1.56 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
version: '3.8'
services:
# PostgreSQL for Problem Service
postgres-problems:
image: postgres:16-alpine
container_name: codesphere-postgres-problems
environment:
POSTGRES_DB: codesphere_problems
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5433:5432"
volumes:
- postgres-problems-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
# PostgreSQL for Assessment Service
postgres-assessments:
image: postgres:16-alpine
container_name: codesphere-postgres-assessments
environment:
POSTGRES_DB: codesphere_assessments
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5435:5432"
volumes:
- postgres-assessments-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
# Local SMTP relay — invitation emails land in the web UI at :8025
mailhog:
image: mailhog/mailhog:v1.0.1
container_name: codesphere-mailhog-dev
ports:
- "1025:1025"
- "8025:8025"
# Redis — shared cache and rate-limiting store
redis:
image: redis:7-alpine
container_name: codesphere-redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres-problems-data:
postgres-assessments-data:
redis-data: