docker-compose.yml 492 B

123456789101112131415161718192021222324252627
  1. version: '3.8'
  2. services:
  3. web:
  4. build: ./docker/app
  5. command: python manage.py runserver 0.0.0.0:8000
  6. volumes:
  7. - ./docker/app/:/usr/src/app/
  8. ports:
  9. - 8000:8000
  10. env_file:
  11. - ./.env.dev
  12. depends_on:
  13. - db
  14. db:
  15. image: postgres:latest
  16. volumes:
  17. - postgres_data:/var/lib/postgresql/data/
  18. environment:
  19. - POSTGRES_USER=app_django
  20. - POSTGRES_PASSWORD=app_django
  21. - POSTGRES_DB=app_django_dev
  22. volumes:
  23. postgres_data: