35 lines
651 B
YAML
35 lines
651 B
YAML
services:
|
|
db:
|
|
container_name: teastream-db
|
|
image: postgres:15.2
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
ports:
|
|
- 5433:5432
|
|
volumes:
|
|
- postgres_data:/var/lib/posgresql/data
|
|
networks:
|
|
- teastream-backend
|
|
|
|
redis:
|
|
container_name: teastream-redis
|
|
image: redis:5.0
|
|
restart: always
|
|
ports:
|
|
- 6379:6379
|
|
command: redis-server --requirepass ${REDIS_PASSWORD}
|
|
volumes:
|
|
- redis_data:/data
|
|
networks:
|
|
- teastream-backend
|
|
|
|
|
|
volumes:
|
|
postgres_data:
|
|
redis_data:
|
|
|
|
networks:
|
|
teastream-backend:
|