-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (62 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
67 lines (62 loc) · 1.54 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:
# Database - PostgreSQL (The source of truth)
postgres:
image: postgres:17-alpine
container_name: skooly-postgres
restart: always
environment:
POSTGRES_USER: ${DB_USER:-postgres}
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres}
POSTGRES_DB: ${DB_NAME:-skooly_db}
ports:
- "5432:5432"
volumes:
- skooly-db-data:/var/lib/postgresql/data
- ./deployment/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- skooly-network
# Cache & PubSub - Redis
redis:
image: redis:7-alpine
container_name: skooly-redis
restart: always
ports:
- "6379:6379"
volumes:
- skooly-redis-data:/data
networks:
- skooly-network
# Object Storage - MinIO (Self-hosted S3)
minio:
image: minio/minio:latest
container_name: skooly-minio
restart: always
ports:
- "9000:9000" # API
- "9001:9001" # Console
environment:
MINIO_ROOT_USER: ${STORAGE_USER:-admin}
MINIO_ROOT_PASSWORD: ${STORAGE_PASSWORD:-password}
command: server /data --console-address ":9001"
volumes:
- skooly-storage-data:/data
networks:
- skooly-network
# Placeholder for API (to be built)
# api:
# build:
# context: .
# dockerfile: deployment/docker/Dockerfile.api
# container_name: skooly-api
# depends_on:
# - postgres
# - redis
# networks:
# - skooly-network
networks:
skooly-network:
driver: bridge
volumes:
skooly-db-data:
skooly-redis-data:
skooly-storage-data: