peer-group-grading/dev-compose.yml

27 lines
500 B
YAML

services:
db:
image: postgres:latest
container_name: database
restart: unless-stopped
env_file:
- .env
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
redis:
image: redis:latest
restart: unless-stopped
ports:
- '6379:6379'
volumes:
- redis:/data
volumes:
postgres_data:
redis: