services: bot: build: context: . restart: always depends_on: - db env_file: - .env db: image: postgres restart: always environment: - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_DB=${POSTGRES_NAME} expose: - '5432' volumes: - postgres_data:/var/lib/postgresql/data redis: image: redis:latest restart: always command: [ "redis-server", "--requirepass", "4CEqaD0JL8gTM4XWVt8K" ] expose: - '6379' volumes: - redis_data:/data volumes: postgres_data: redis_data: