version: '3.7' services: backend: build: context: . dockerfile: Dockerfile user: $UID:$GID command: python /app/src/manage.py runserver 0.0.0.0:8000 tty: true ports: - "8000:8000" volumes: - ./:/app/ links: - redis - postgres env_file: - env postgres: image: postgres:13-alpine volumes: - postgres_data:/var/lib/postgresql/data/ ports: - 5432:5432 env_file: - env redis: image: redis:latest ports: - "6379:6379" volumes: postgres_data: