33 lines
No EOL
726 B
YAML
33 lines
No EOL
726 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
container_name: crafting-shop-postgres-dev
|
|
environment:
|
|
- POSTGRES_USER=${POSTGRES_USER:-crafting}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-devpassword}
|
|
- POSTGRES_DB=${POSTGRES_DB:-crafting_shop}
|
|
volumes:
|
|
- postgres-dev-data:/var/lib/postgresql/data
|
|
networks:
|
|
- crafting-shop-network
|
|
ports:
|
|
- "5432:5432"
|
|
restart: unless-stopped
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: crafting-shop-redis-dev
|
|
networks:
|
|
- crafting-shop-network
|
|
ports:
|
|
- "6379:6379"
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
postgres-dev-data:
|
|
|
|
networks:
|
|
crafting-shop-network:
|
|
driver: bridge |