version: "3" services: redis: image: redis:alpine command: redis-server celery: restart: always build: . command: "celery -A Sprint worker -l INFO" volumes: - .:/app depends_on: - redis postgres: restart: always image: postgres environment: POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_DB: ${POSTGRES_DB} ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgres - ./dbscripts/postgres:/docker-entrypoint-initdb.d