Docker Compose Development
Create reproducible development environments.
Example Configuration
# docker-compose.yml
version: '3.8'
services:
web:
build: .
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- db
- redis
db:
image: postgres:14
environment:
POSTGRES_DB: mydb
POSTGRES_PASSWORD: secret
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:alpine
volumes:
pgdata:
Discussion 0
No comments yet. Be the first to start the discussion!
Leave a Comment