30 lines
647 B
YAML
30 lines
647 B
YAML
services:
|
|
postgres:
|
|
image: postgres:18.3
|
|
container_name: k12study-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: k12study
|
|
POSTGRES_USER: k12study
|
|
POSTGRES_PASSWORD: k12study
|
|
PGDATA: /var/lib/postgresql/18/docker
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql
|
|
- ../../init/pg:/docker-entrypoint-initdb.d
|
|
|
|
redis:
|
|
image: redis:7
|
|
container_name: k12study-redis
|
|
restart: unless-stopped
|
|
ports:
|
|
- "6379:6379"
|
|
command: redis-server --appendonly yes
|
|
volumes:
|
|
- redis-data:/data
|
|
|
|
volumes:
|
|
postgres-data:
|
|
redis-data:
|