init
This commit is contained in:
46
.devcontainer/internal/docker-compose.yml
Normal file
46
.devcontainer/internal/docker-compose.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
services:
|
||||
workspace:
|
||||
image: mcr.microsoft.com/devcontainers/universal:2
|
||||
volumes:
|
||||
- ../../:/workspaces/K12study:cached
|
||||
working_dir: /workspaces/K12study
|
||||
command: sleep infinity
|
||||
environment:
|
||||
K12STUDY_DB_HOST: postgres
|
||||
K12STUDY_DB_PORT: 5432
|
||||
K12STUDY_DB_NAME: k12study
|
||||
K12STUDY_DB_USER: k12study
|
||||
K12STUDY_DB_PASSWORD: k12study
|
||||
K12STUDY_REDIS_HOST: redis
|
||||
K12STUDY_REDIS_PORT: 6379
|
||||
K12STUDY_REDIS_PASSWORD: ""
|
||||
PYTHONUNBUFFERED: "1"
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
|
||||
postgres:
|
||||
image: postgres:16
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: k12study
|
||||
POSTGRES_USER: k12study
|
||||
POSTGRES_PASSWORD: k12study
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres-dev-data:/var/lib/postgresql/data
|
||||
- ../../init/pg:/docker-entrypoint-initdb.d
|
||||
|
||||
redis:
|
||||
image: redis:7
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "6379:6379"
|
||||
command: redis-server --appendonly yes
|
||||
volumes:
|
||||
- redis-dev-data:/data
|
||||
|
||||
volumes:
|
||||
postgres-dev-data:
|
||||
redis-dev-data:
|
||||
Reference in New Issue
Block a user