init
This commit is contained in:
28
docker-compose.yml
Normal file
28
docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16
|
||||
container_name: k12study-postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: k12study
|
||||
POSTGRES_USER: k12study
|
||||
POSTGRES_PASSWORD: k12study
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
- ./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:
|
||||
Reference in New Issue
Block a user